Questions tagged [localhost]

localhost usually refers to the special addresses 127.0.0.1 and ::1 that map to a loopback device, which allows a computer to connect to itself.

689 questions
367
votes
5 answers

What's the difference between 127.0.0.1 and 0.0.0.0?

I understand that 127.0.0.1 points to localhost, and so does 0.0.0.0 (correct me if I'm wrong). So, what's the difference between 127.0.0.1 and 0.0.0.0?
100
votes
6 answers

Why is localhost IP 127.0.0.1?

I wondered what is the origin of the decision to make localhost's IP address 127.0.0.1. What is the "meaning" of 127? what is the "meaning" of 0.0.1?
Roee Adler
  • 1,626
70
votes
2 answers

Why is my localhost not 127.0.0.1 but ::1, and what notation is that?

When I use the Ping command against my localhost (on Windows Vista), it doesn't show up as 127.0.0.1. C:\Windows\system32>ping localhost Pinging GIGA [::1] from ::1 with 32 bytes of data: Instead, it shows up as ::1 (pair of colons and a one).…
Samir
  • 21,235
57
votes
4 answers

How to kill a localhost:8080

I'm trying to kill a dev server setup via yarn on Windows. While I Ctrl+C'd the command prompt, when I went back to localhost:8080 it had not stopped. How can I kill the process?
51
votes
2 answers

How can I use curl with ::1 for ipv6 based loopback?

I tried a few ways but they seem to be confusing curl. root@testt:~# curl localhost:8080

Hello world!

Boom Bam Splat

root@testt:~# curl ::1:8080 curl: (3) IPv6 numerical address used in URL without brackets root@testt:~# curl…
hak8or
  • 742
51
votes
3 answers

How to find out what is running on localhost port

I have something running at port 9090 on my local machine. It's probably something I set up long ago and forgot about... how can I find out what it is? I am using Windows 8.
BanksySan
  • 763
41
votes
2 answers

How to alias a hostname on Mac OSX

In a nutshell, I would like to be able to open a browser and open local.example.com but it actually loads http://localhost/path/to/example.com/ I am using Mac OSX 10.5, and not afraid to get my hands dirty with the terminal :) I use Apache as my…
Austin Hyde
  • 1,134
38
votes
6 answers

Why is there a difference between ping "localhost" and ping "local IP address"?

Using cmd and ping on Windows gave me the following results: Pinging "localhost": Pinging "192.168.0.10" (local IP address): Aren't both situations exactly the same? I mean, I'm pinging the same interface, the same machine and the same…
Diogo
  • 30,792
38
votes
3 answers

How can I specify IP and ports for a hostname in the Windows hosts file?

I want to specify host names with two different ports in the Windows hosts file. Is there a way to do it? Or is it not allowed by Windows itself? I have been wasting my time searching for the solution for the last 8 hours. Is it possible to…
SIA
37
votes
5 answers

ERR_ICANN_NAME_COLLISION when trying to use localhost .dev in Chrome

Today I got this error when trying to access local domains specified in apache httpd-vhosts.conf. It happened for the 1st time with a .dev domain, so it seemed plausible that in light of recent news Goggle finally got it. However, I tried with other…
konrad
  • 475
37
votes
3 answers

Why does the registered domain name “localtest.me” resolve to 127.0.0.1?

I was reading an article about Server-Side Request Forgery. In that article the attacker found that 127.0.0.1 was open to the internet. The victim then blocked 127.0.0.1, but because many other IPs and apparently also some domains are also resolved…
not2qubit
  • 2,651
  • 4
  • 34
  • 45
36
votes
7 answers

The easiest way to serve a page to localhost on OS X

I have a page that I need to serve on localhost for the fonts to appear properly. What is the easiest way to do this (on a Mac)?
32
votes
3 answers

I have a domain name that I want to redirect to my local server. How do I do this?

This may be better suited for Server Fault, so someone can migrate it if need be. For the purposes of testing, I want to redirect a domain name I own to my localhost. How do I do this? Can I simply set the redirect to 127.0.0.1? Also, I am using…
starscape
  • 433
  • 1
  • 4
  • 7
30
votes
3 answers

Curl local host names on Mac OS X Yosemite

I just upgraded from Mavericks to Yosemite, and now curl can't see loopback host names. Set up a simple http server to test: $ python -m SimpleHTTPServer Serving HTTP on 0.0.0.0 port 8000 ... Now I can hit localhost:8000 in chrome. I can even wget…
28
votes
8 answers

How to prevent Firefox converting 'localhost/*' URLs into search queries?

Since upgrading from Firefox 3.6.x, my address bar has a quirk that never used to be there. When I type in, for example: localhost/my_dir/index.php Firefox turns it into a search query, my search engine is Google. To work around this (after…
danjah
  • 435
1
2 3
45 46