`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

11
votes
5answers
13k 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
34k 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
8k 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
8k 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
6k 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
3answers
24k 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
12k 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 ...
6
votes
2answers
8k 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 ...
2
votes
2answers
4k views

Deny access to a port from localhost on OSX

I want to test a fallback strategy for my memcached driver (in case port is protected by firewall). How can I deny access to a specific port, on 127.0.0.1?
2
votes
3answers
7k 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
265 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
201 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
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 ...
2
votes
3answers
2k 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 ...
0
votes
3answers
7k 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 ...
7
votes
3answers
9k 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 ...
41
votes
2answers
20k 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 ...
11
votes
6answers
35k 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 ...
4
votes
2answers
5k 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, ...
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
5k 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
139 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 ...
0
votes
4answers
4k 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: ...
3
votes
3answers
4k 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 ...
3
votes
4answers
13k 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?
2
votes
1answer
539 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 ...
2
votes
2answers
21k views

http://localhost:8080 is not working on running apacher Server through XAMPP

I am unable to configure a PHP/MySQL/Apache environment on my local machine using XAMPP. In my xampp control panel the Apache and MySQL status is shown as started, but localhost URL is not working. ...
2
votes
3answers
5k 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 ...
1
vote
2answers
454 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
2answers
3k 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 ...
1
vote
1answer
2k 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
326 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
1k 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

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
990 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
1answer
430 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 ...
0
votes
0answers
142 views

Apache Virtual Host loads slowly on Chrome and Firefox, not at all on Safari

I originally wrote a post here, which I now know is down to Safari/browsers or something. Basically, my Virtual Host, 5lines.dev, which is a WordPress Multisite, loads really slowly on Chrome and ...
0
votes
0answers
185 views

Apache Virtual Host hangs when loading, but it's subdomains load perfectly

I have a WordPress Multisite installation, with quite a few subdomain sites set up. These all work perfectly fine, however the main domain doesn't work. It doesn't even show a white screen, or any ...
-2
votes
1answer
46 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 ...