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.

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.

On many operating systems, localhost translates to an IPv4 address 127.0.0.1 and IPv6 address ::1. However this may be configured differently.

Technically, tested on Windows and IPv4 address starts with 127 will be regarded as and it should access the same result as localhost. However, the same result, may depend upon the local server settings that you aim to connect with. For example, restricting access from specific IP such as 127.0.0.1. Knowing this note helps in local testing that need another host IP. For example, in web design, suppose that you want to view new favicon of your website hosted locally, simply, instead of accessing it http://localhost or http://127.0.0.1 (or http://[::1]) you can access it something like http://127.10.205.98

Useful links

9014 questions
826
votes
22 answers

Addressing localhost from a VirtualBox virtual machine

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 VirtualBox; I also need to see how it look on Firefox in a…
hasen
  • 148,751
  • 62
  • 182
  • 223
722
votes
23 answers

How do I kill the process currently using a port on localhost in Windows?

How can I remove the current process/application which is already assigned to a port? For example: localhost:8080
KavinduWije
  • 23,917
  • 4
  • 11
  • 16
525
votes
14 answers

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 search for localhost or worse it says that it didn't…
330
votes
22 answers

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 gonna make put it on in a certain domain. In the reCAPTCHA…
rlc
  • 4,921
  • 5
  • 36
  • 46
297
votes
12 answers

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 will or won't work.
edwardmlyte
  • 13,220
  • 21
  • 55
  • 81
296
votes
27 answers

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 now I get a 404 error.
rams
  • 5,259
  • 6
  • 37
  • 54
262
votes
4 answers

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. However, when I try to connect ngrok to the React dev…
Patrick Connors
  • 4,249
  • 4
  • 21
  • 42
248
votes
25 answers

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 localhost, but it doesn't seem to work with the…
Robin
  • 2,823
  • 4
  • 15
  • 8
230
votes
7 answers

How do you connect localhost in the Android emulator?

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
  • 31,033
  • 22
  • 83
  • 126
206
votes
16 answers

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.
  • 2,985
  • 6
  • 18
  • 18
191
votes
7 answers

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:
dudledok
  • 2,620
  • 5
  • 21
  • 34
190
votes
8 answers

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
  • 2,138
  • 3
  • 15
  • 13
183
votes
11 answers

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 development with OAuth stuff if they all seem to…
Awesomeness
  • 2,051
  • 2
  • 15
  • 16
180
votes
20 answers

Facebook development in localhost

Just wanted to know if there is any way I could develop Facebook applications in localhost.
Abhishek
  • 6,554
  • 20
  • 58
  • 76
176
votes
22 answers

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 Web initiatives. I have a ASP.Net project and I…
Sandy
  • 10,395
  • 24
  • 72
  • 114
1
2 3
99 100