`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

10
votes
5answers
10k 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 ...
24
votes
6answers
20k 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 ...
7
votes
3answers
5k 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 ...
15
votes
1answer
7k 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 ...
13
votes
3answers
16k 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 ...
2
votes
1answer
9k 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 ...
2
votes
3answers
4k views

Connecting to localhost with smartphone: possible?

I am currently developing a mobile PHP project on localhost (or, to be more precise, a locally hosted website reachable at http://azgoth/) on my desktop computer and wish to check out how the design ...
1
vote
2answers
241 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 ...
1
vote
3answers
198 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 ...
2
votes
3answers
1k views

Firefox on Ubuntu can't connect to local virtualhost when network is unplugged

I'm using Firefox (3.6.17) on my Ubuntu Lucid (rel. 10.04) and noticed that if the network cable is plugged everything is fine and I'm able to browse my local virtualhost configured in Apache2. But ...
1
vote
2answers
936 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
6k views

How to access website on localhost from internet?

I turned my pc into router by allowing port forwarding on port 80 and got my hostname(xyz.donexist.org) registered through dyndns.com. Now i when i type my public ip address in browser i get ...
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 ...
6
votes
3answers
7k 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 ...
34
votes
2answers
5k views

Why is my “localhost” not 127.0.0.1? [duplicate]

When I use the Ping command to ping my localhost, 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 ...
4
votes
1answer
2k views

Firefox and Chrome slow on localhost; known fix doesn't work on Windows 7

Firefox and Chrome are known to be slow on localhost when IP6 is enabled. In previous versions of Windows, the simplest fix is to comment out this line from the hosts file, as explained in the answer ...
2
votes
4answers
4k 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
133 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 ...
1
vote
2answers
3k 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, ...
3
votes
3answers
2k 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
3answers
3k 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
4answers
9k 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?
1
vote
1answer
512 views

404 not found error for JavaScript files when accessing web page on localhost

The page loads up fine, but console shows a 404 not found error for JavaScript files. I have verified that the code contains the correct JavaScript file name. Any ideas? The JavaScript file is loaded ...
1
vote
1answer
188 views

Pages of website returns a WAMP homepage on my LocalHost?

Using WAMPSERVER for windows 7, smartgit and Safe Search Replace I have done the following steps: Pulled a wordpress code from a github repository using smartgit Downloaded the database from the ...
1
vote
1answer
853 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
965 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. ...
0
votes
2answers
38 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
votes
4answers
521 views

localhost as hostname confusion

I have a basic understanding about hostname and FQDN. Now I am confused, do I really have to specify a name for my hostname? So for example: Hostname: somename Domain: mydomain.com FQDN: ...