`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.

learn more… | top users | synonyms

12
votes
5answers
15k views

How does localhost 127.0.0.1 work?

I found some articles related to this, but they were not sufficient for me. I want to know how the localhost works and why is it the same on many different machines? How does the localhost block the ...
27
votes
6answers
51k views

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 ...
8
votes
2answers
14k views

How to map an IP adress to localhost?

I want to map the IP address 192.168.1.222 to 127.0.0.1 so that if I use 192.168.1.222 in the web browser or ping command I get the response (and that from my 127.0.0.1). Is this possible via ...
16
votes
1answer
9k views

Google Chrome is slow to localhost

For some reason Google Chrome is slow when I'm working against localhost. I had the same problem in Firefox 3.5 but I changed some IPv6 setting in about:config which fixed the issue. I think the same ...
1
vote
6answers
10k views

Use name instead of IP address for home network

I have IIS7 on my computer, and I can access it through other computers in my house on the same network through my computer's IP address - 192.168.1.10x Instead of typing in http : //192.168.1.10x/ I ...
15
votes
4answers
32k views

Is there a way to disable IPv6 in Google's Chrome?

I'm developing websites in a Windows 7 machine. When I've installed Firefox I've found some performance issue specially on connecting to the localhost, googling around I've discovered that it's ...
3
votes
1answer
14k views

Connect to localhost from another computer

I'm trying to access a database that is hosted in a Mac localhost from my Android device which are both connected to the same network. The localhost project is running at www.localhost:8000/ I've ...
7
votes
3answers
11k views

Allowing access to localhost outside network

I have a Netbeans project running on localhost with Tomcat and MySQL, all is well. I now want to show my progress to someone in another part of the country. How do I let him access my website ...
1
vote
3answers
210 views

How to access a site you host from within your own network?

I have web site being hosted on my computer, so that mysite.com is served from one of my machines. However, even though everyone else can access this site normally, if I type its name (or, indeed, any ...
1
vote
2answers
271 views

Making home based web server

I am new in making web servers. I installed Apache web server in my computer and I forwarded a port 80 on my Router. When I type http://localhost, 127.0.0.1 or my local IP ie 192.168.1.2 in my web ...
2
votes
2answers
1k views

Proxying fake domain to a localhost port

I'd like to do much the same thing described at Redirect Domain Name to Localhost for web app development purposes, but with the twist that I'd like requests to fakedomain.com:80 to be routed to ...
0
votes
3answers
3k views

Settings to send an email from localhost for PHP code in Windows Vista

I am using PHP 5 and Apache to do programming. My code can correctly send emails on the server, but on my own development machine I cannot send emails. There is clearly nothing wrong with my code, so ...
107
votes
4answers
16k views

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?
42
votes
2answers
37k views

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

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: ...
8
votes
3answers
11k views

How to connect to Google App Engine server in internal network iMac?

I have 3 iMacs and a Windows machine on my home network, all connected via an Airport Extreme router. I'm developing Google App Engine applications locally on one of the iMacs, and can view ...
13
votes
6answers
47k views

How to SSH to localhost without password?

EDIT: Putting exactly what was done. I need to SSH to localhost without a password, the usual way of doing it (with public keys) do not work. user@PC:~$ rm -rf .ssh/* user@PC:~$ ssh-keygen -t rsa &...
8
votes
2answers
19k views

Why does my “hosts” file entry have no effect when accessing network shares?

I added the following line to a Windows7 hosts file: 127.0.0.1 mecserver Using ping mecserver works fine, but if I use this name to connect to the notebook (like localhost) to see the Windows ...
2
votes
3answers
14k views

How can I redirect “localhost” to another local IP?

This is my situation: Two computer under the same router, 192.168.1.101 and 192.168.1.102 This is what I like to do: On 192.168.1.101, while accessing port 22 with localhost, it directs the traffic ...
1
vote
2answers
2k views

How to run localhost or local website within Powerpoint?

I have a demo coming up and I kind of want to show off different Javascript applications within the presentation. I was wondering if there was a way to run localhost, or web applications locally, ...
7
votes
3answers
30k views

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 ...
5
votes
2answers
7k views

Redirect Domain Name to Localhost

I have a linux test machine which I would like to run a copy of a production webserver. This is a legacy application which does not use a property file for its server name. Throughout the application, ...
2
votes
4answers
7k views

Chrome and Firefox can reach localhost; Internet Explorer 9 can't. Why?

The title is pretty self explanatory. I have a Windows 7 environment with IIS7 installed. I'm sure this is the result of me mucking around with settings at some point. Trying to avoid a fresh ...
1
vote
0answers
145 views

Why is “localhost” slower than “127.0.0.1” in Google Chrome - Windows 8? [duplicate]

There is a very similar previous question and answer, but for windows 7 and/or earlier versions of Google Chrome, here: Is there a way to disable IPv6 in Google's Chrome? That solution no ...
3
votes
4answers
17k views

Why I can't visit http://localhost via IE?

But it's fine when I'm using firefox, and in IE I can also open the page via 127.0.0.1 Anyone knows how to fix it for IE?
3
votes
3answers
6k views

PHP code is returned instead of executed

I have L-Ubuntu 11.04. I've installed Apache2 and I'm trying to simulate a server on my local file system by navigating to localhost in the browser. The problem is that I can't seem to get php to ...
2
votes
1answer
790 views

dnsmasq not working without internet connection in OS X Yosemite

No0b here. I have been trying to setup a local environment for web development on OS X Yosemite using these approaches (http://passingcuriosity.com/2013/dnsmasq-dev-osx/ and http://mallinson.ca/osx-...
2
votes
3answers
6k views

How does one allow access to networked PCs to see your “localhost” in IIS7 - Windows 7

I have a computer setup with a localhost in IIS, and the computer is visible on an internal network. In Windows XP IIS6, I could just type http://<computername>/ and I would see that user's ...
2
votes
3answers
337 views

Can't access 127.0.0.1 from Windows 8.1

I have a really strange problem with my Windows 8.1 Pro laptop: I can't access 127.0.0.1 from any web browser. But wait, it gets weirder! The setup My OS has installed (among others) the following ...
1
vote
1answer
40 views

Acrylic DNS Hosts not refresh

I've installed current version (0.9.31) acrylic DNS on Windows 8 machine and set DNS address to 127.0.0.1 in TCP/IP v4 settings. Then I added in ArcylicHosts entry: 127.0.0.1 *.dev for wildcards. ...
1
vote
2answers
710 views

Access web server on LAN using IP fail

I have a web server in my LAN with IP: 192.168.1.103, I can only access the web server from browser in this computer through http://localhost:8080, I cannot access it through 192.168.1.103:8080, nor ...
1
vote
1answer
1k views

Cannot find local host via browser - can ping localhost and 127.0.0.1 ok

I have installed wampserver to start up some PHP-scripting, but cannot call localhost nor 127.0.0.1 via Chrome, Firefox or IE8. I have made sure that my host-file says 127.0.0.1 localhost I have run ...
1
vote
1answer
2k views

Mac OS X Mountain Lion can't ping/telnet localhost. Point to a wrong public IP

I've been developing Node.js apps on my localhost on port 1337 for last two years with no problem as shown below. $ node app App started on port 1337 Today I wanted to test how things go with ...
1
vote
1answer
1k views

How to forward a public (network-accessible) port to a local (port or host)

I'm using Ubutnu 9.04, and XAMPP as a testing server for my websites. What I want to do is make my websites network-accessible. For now only the my-ip-address:80 is accessible and managed by XAMPP. ...
1
vote
4answers
6k views

How to remove IIS for WampSERVER?

I have WampServer installed, and I installed Microsoft SEO Toolkit, I guess that has the IIS dependency. And I guess the iis service uses port 80. Now every time I start WampServer, I need to go to ...
0
votes
1answer
2k views

Why can't Chromium connect to http://[::1]:8080/ (i.e. IPv6 localhost)?

For developing a statically generated website on my laptop running Debian, I use weborf running on IPv6 localhost, port 8080: weborf -i ::1 -p 8080 -b .. I can connect to http://[::1]:8080/ without ...
-2
votes
1answer
51 views

How can I offer internet for some users and only an intranet for others using a Router wifi?

My Problem I have to offer, to visitors, a small intranet (which I have on a localserver) through a router that offers too internet for staff. The visitors should have only access to the intranet ...