Skip to main content

Questions tagged [localhost]

In computer networking, localhost is the hostname given to the address of the loopback network interface. It is used by a host to access network services running on itself.

localhost
Filter by
Sorted by
Tagged with
854 votes
22 answers
558k views

Addressing localhost from a VirtualBox virtual machine [closed]

I have a local test/development server (HTTP, of course), listening to port 8000. I'm working on Linux, so to test the page on Internet Explorer 6, 7, 8, etc. I run a virtual machine using ...
hasen's user avatar
  • 165k
618 votes
20 answers
476k views

How to connect to my http://localhost web server from Android Emulator

What can I do in the Android emulator to connect it to my localhost web server page at http://localhost or http://127.0.0.1? I've tried it, but the emulator still takes my request like a Google ...
Fopa Léon Constantin's user avatar
568 votes
35 answers
400k views

Google Chrome redirecting localhost to https

When I debug a Visual Studio project using Chrome the browser tries to redirect to the https equivalent of my web address. I do not have SSL enabled in the web project and the start URL is the http ...
Brett Mathe's user avatar
  • 6,649
434 votes
26 answers
537k views

Using reCAPTCHA on localhost

I'm developing a website using PHP and I want to make a human verification in one of the sessions. For the development, I'm initially running the system locally and when it is ready, I'm going to put ...
rlc's user avatar
  • 6,009
409 votes
15 answers
346k views

No “Proceed Anyway” option on NET::ERR_CERT_INVALID in Chrome on MacOS

I try to get my local development in Chrome back running, but Chrome prevents that, with the message that the certificate is invalid. Even though it could not be the date of the certificate, as you ...
DarioSoller's user avatar
  • 4,139
405 votes
7 answers
320k views

How do you connect localhost in the Android emulator? [duplicate]

I have made a php script inside localhost and I am connecting that with httpClient but I am getting a problem. Please tell me how can I connect to a php file at localhost from the emulator?
Dharmendra's user avatar
  • 33.7k
392 votes
29 answers
623k views

How do you access a website running on localhost from iPhone browser

I am working on a mobile website and would like to test it using my iPhone browser. My Windows 7 machine and iPhone are on the same wireless network. How do I access localhost from the iPhone? Right ...
rams's user avatar
  • 6,681
371 votes
7 answers
247k views

Invalid Host Header when ngrok tries to connect to React dev server

I'm trying to test my React application on a mobile device. I'm using ngrok to make my local server available to other devices and have gotten this working with a variety of other applications. ...
Patrick Connors's user avatar
336 votes
26 answers
338k views

Accessing localhost:port from Android emulator

I'm running a web service on my local machine that runs at localhost:54722. I want to call the service from an app running in the Android emulator. I read that using 10.0.2.2 in the app would access ...
Robin's user avatar
  • 3,713
322 votes
12 answers
220k views

Can you test google analytics on a localhost address?

I have to test out my new GA account on my local machine. Will this work just by copying the standard snippet supplied by Google onto the page ? I don't want to spend 24 hours waiting to see if it ...
edwardmlyte's user avatar
  • 16.4k
296 votes
8 answers
285k views

Run command on the Ansible host

Is it possible to run commands on the Ansible controller node? My scenario is that I want to take a checkout from a git server that is hosted internally (and isn't accessible outside the company ...
Ross's user avatar
  • 46.8k
275 votes
15 answers
323k views

Set cookies for cross origin requests

How to share cookies cross origin? More specifically, how to use the Set-Cookie header in combination with the header Access-Control-Allow-Origin? Here's an explanation of my situation: I am ...
Pim van der Heijden's user avatar
236 votes
14 answers
197k views

OAuth: how to test with local URLs?

I am trying to test OAuth buttons, but they all (Facebook, Twitter, LinkedIn) come back with errors that seem to signal that I can not test or use them from a local URL. How do people usually work in ...
Awesomeness's user avatar
  • 2,581
230 votes
5 answers
184k views

What is the difference between 127.0.0.1 and localhost

Assuming the following is defined in .../hosts: 127.0.0.1 localhost What, if any, are the actual differences between using 127.0.0.1 and localhost as the server name, especially when hitting ...
Bohemian's user avatar
  • 421k
219 votes
16 answers
323k views

How do I allow HTTPS for Apache on localhost?

I was asked to set up HTTPS with a self-signed cert on Apache on localhost, but how do I actually do that? I have no idea at all.
KennC.'s user avatar
  • 3,365
213 votes
30 answers
384k views

HTTP Error 503. The service is unavailable. App pool stops on accessing website

There are number of posts on this and I have tried many a things by now. But to no avail. Myself a Winforms Developer basically, started working on this Web stuff few days back as my company is taking ...
Sandy's user avatar
  • 11.6k
213 votes
8 answers
669k views

How do I connect to this localhost from another computer on the same network?

I'm currently working on a project and I would like to test it out on two laptops at home where one laptop connects to the localhost on the other. I am using XAMPP. How do I do this?
user1219572's user avatar
  • 2,365
211 votes
9 answers
353k views

Origin null is not allowed by Access-Control-Allow-Origin

I have made a small xslt file to create an html output called weather.xsl with code as follows: <!-- DWXMLSource="http://weather.yahooapis.com/forecastrss?w=38325&u=c" --> <xsl:...
dudledok's user avatar
  • 2,860
203 votes
26 answers
855k views

Accessing localhost (xampp) from another computer over LAN network - how to?

I have just set up a wi-fi network at home. I have all my files on my desktop computer (192.168.1.56) and want to access localhost over there from another computer (192.168.1.2). On my desktop I can ...
bcosynot's user avatar
  • 5,933
202 votes
19 answers
243k views

create a trusted self-signed SSL cert for localhost (for use with Express/Node)

Trying to follow various instructions on creating a self-signed cert for use with localhost, Most of the instructions seem to be for IIS, but I'm trying to use Nodejs/Express. None of them work ...
JasonS's user avatar
  • 7,643
196 votes
5 answers
262k views

What is IPV6 for localhost and 0.0.0.0?

As we all know the IPv4 address for localhost is 127.0.0.1 (loopback address). What is the IPv6 address for localhost and for 0.0.0.0 as I need to block some ad hosts.
Killerbeans's user avatar
  • 2,103
183 votes
20 answers
153k views

Facebook development in localhost

Just wanted to know if there is any way I could develop Facebook applications in localhost.
Abhishek's user avatar
  • 6,870
171 votes
20 answers
258k views

ngrok command not found [closed]

I'm trying to install ngrok (which I've been using for a while on Windows with no issues) on my 1 week old yosemite and these are the steps I've followed so far. Downloaded ngrok from here https://...
Valina's user avatar
  • 1,759
167 votes
6 answers
344k views

Access localhost from the internet [closed]

I need to forward my localhost for a short period of time for testing purposes. It has to be accessed from the public internet. How can I achieve this?
George Leow's user avatar
  • 2,293
153 votes
13 answers
106k views

How to check with javascript if connection is local host?

I want to have a check in my javascript if the page loading up is on my local machine. The reason why I want to do that is that when I developing I like to make sure that both my server side(C#) ...
chobo2's user avatar
  • 84.9k
153 votes
16 answers
131k views

How do I get Fiddler to stop ignoring traffic to localhost?

When using Fiddler to monitor HTTP Requests & Responses in Internet Explorer it ignores all traffic directed to http://localhost.
NotMyself's user avatar
  • 29.7k
152 votes
18 answers
576k views

How do I free my port 80 on localhost Windows?

I installed XAMPP 1.6.8 and for some reason it didn't work. Later realized port 80 is not free or not listening. How can I release it or make it free? Thanks a lot!
user avatar
151 votes
9 answers
249k views

Wireshark localhost traffic capture [closed]

I wrote a simple server app in C which runs on localhost. How to capture localhost traffic using Wireshark?
Udara S.S Liyanage's user avatar
149 votes
27 answers
339k views

WAMP/XAMPP is responding very slow over localhost

I don't know what the problem is. WAMP was very slow, so I reformatted my computer and installed WAMP. Still, accessing localhost is very, very slow, and sometimes it doesn't even load at all. I even ...
FBwall's user avatar
  • 1,643
145 votes
11 answers
464k views

How to enable local network users to access my WAMP sites?

First of all, I read at least 20 articles about this topic, and not one of them can match up the scenario and I screwed up the process numerous times. So I turn help by offering my specific scenario ...
ey dee ey em's user avatar
  • 8,322
128 votes
14 answers
152k views

Connect Device to Mac localhost Server? [closed]

How do I allow any device, e.g., iPhone, to connect over a WLAN to my Mac's localhost server? On my Mac, I'm running a "Hello World" HTTP Node.js server that serves a page, which Safari opens ...
ma11hew28's user avatar
  • 125k
125 votes
8 answers
50k views

Jvm takes a long time to resolve ip-address for localhost

I seem to have a problem with performance of "sbt test" (which includes looking up localhost names/IP addresses) after upgrading to macOS Sierra. On a previous version of OS X it took about 40-50 ...
Tomasz Mikus's user avatar
  • 1,296
125 votes
11 answers
113k views

How can I detect if the user is on localhost in PHP?

In other words, how can I tell if the person using my web application is on the server it resides on? If I remember correctly, PHPMyAdmin does something like this for security reasons.
Richie Marquez's user avatar
123 votes
13 answers
388k views

How to run html file on localhost? [closed]

I have an HTML file and I run it on localhost. But, this file includes a mirror using a webcam. For example, how can I run this HTML file on localhost? Webcam starts in this example when checking to ...
Volkan Şahin's user avatar
123 votes
7 answers
140k views

Using % for host when creating a MySQL user

My MySQL database needs two users: appuser and support. One of the application developers insists that I create four accounts for these users: appuser@'%' appuser@'localhost' support@'%' support@'...
Ed Manet's user avatar
  • 3,168
123 votes
1 answer
101k views

tcpdump: localhost to localhost [closed]

I write a program that send TCP packets from localhost to localhost. And I want to use tcpdump to capture the packets. But nothing is captured. My command in Ubuntu: sudo tcpdump What argument shall ...
David's user avatar
  • 1,255
121 votes
10 answers
77k views

how to test open graph on localhost

I've done a lot of research and haven't found a definitive answer to this. Is there anyway to test the open graph on localhost? I don't haven any issues using the graph api on locahost. I've changed ...
DavidB's user avatar
  • 2,174
117 votes
17 answers
119k views

How to configure Fiddler to listen to localhost?

I want to monitor HTTP traffic between a process on my local machine and another (server) process, also running on my local machine. How can I configure Fiddler to listen to traffic to and from ...
The Light's user avatar
  • 26.8k
116 votes
11 answers
81k views

React-router v4 - cannot GET *url*

I started to use react-router v4. I have a simple <Router> in my app.js with some navigation links (see code below). If I navigate to localhost/vocabulary, router redirects me to the right page. ...
exoslav's user avatar
  • 2,185
115 votes
23 answers
519k views

How to solve ERR_CONNECTION_REFUSED when trying to connect to localhost running IISExpress - Error 502 (Cannot debug from Visual Studio)?

This is running on Windows Server 2008 and used to work several months ago. I am just now using this server again for some dev work with VS. This is live web server used to serve up a few test sites ...
ElHaix's user avatar
  • 12.9k
114 votes
15 answers
61k views

How can I eliminate slow resolving/loading of localhost/virtualhost (a 2-3 second lag) on Mac OS X Lion?

Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the ...
Adam Gries's user avatar
  • 1,791
109 votes
16 answers
108k views

Your connection is not private NET::ERR_CERT_COMMON_NAME_INVALID

While debugging a local ASP.NET application on Chrome for localhost Https site it's giving error: Your connection is not private NET::ERR_CERT_COMMON_NAME_INVALID. I am not able to open localhost ...
Pranav Singh's user avatar
  • 19.3k
107 votes
11 answers
169k views

What's the whole point of "localhost", hosts and ports at all?

I'm totally new to this web development stuff. So I see things like "localhost" all the time and ask myself: What's that? I feel to know what a "host" actually is. Something that executes something. ...
openfrog's user avatar
  • 40.6k
101 votes
23 answers
188k views

How to open a create-react-app from another computer connected to the same network?

I am using create-react-app and hosting in its default port localhost:3000 and want to access this from another device on the same network. I got the IP of my host's IP (using ifconfig) 192.168.0.5 ...
ambar's user avatar
  • 2,203
101 votes
3 answers
157k views

How do you use https / SSL on localhost?

I would like to know how to setup SSL on my web application on the localhost. I have no background in doing this, would appreaciate guidance. I already finished implementing my web application and i ...
HShbib's user avatar
  • 1,831
97 votes
7 answers
101k views

`Apache` `localhost/~username/` not working

So I just recently upgrade to Mac OS X Yosemite and I need to set up my Apache again. I create a folder "Sites" under /user/kevin and change file permission to 777 and uncomment the ...
CocoHot's user avatar
  • 1,226
97 votes
13 answers
88k views

How to find FQDN of local machine in C#/.NET ?

How can you get the FQDN of a local machine in C#?
user avatar
96 votes
12 answers
253k views

How to turn on/off MySQL strict mode in localhost (xampp)?

I want to know how to check whether MySQL strict mode is on or off in localhost(xampp). If on then for what modes and how to off. If off then how to on. I already followed http://dev.mysql.com/doc/...
Ipsita Rout's user avatar
  • 5,119
95 votes
13 answers
154k views

How to point to localhost:8000 with the Dart http package in Flutter?

I'm following the Flutter Networking/HTTP tutorial to do a GET request to a server running on my localhost:8000. Visiting my localhost via my browser works fine. My code looks like this: var url = '...
Mary's user avatar
  • 19.9k
92 votes
13 answers
129k views

Running Facebook application on localhost

I am planning to connect to Facebook chat from my localhost. I will need to get the session key from Facebook. When I give the site URL as localhost:8080 or ip-address:8080 it does not work. I read ...
enthusiastic's user avatar
  • 1,702

1
2 3 4 5
205