`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

3
votes
3answers
1k 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 ...
0
votes
3answers
3k views

500 internal server error when accessing a project through localhost on wamp/apache

I installed wamp. I wanted to use Apache HTTP server instead, so deleted it. But wasn't sure if i deleted it properly. So I installed Apache HTTP server, and in the bottom right of screen where it ...
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
3answers
960 views

Can you do “ping %localhost%”?

I would like to be able to ping whatever machine name I am in without first having to do: localhost Can I do something like the following? ping %localhost% When I do: ping localhost the IP ...
3
votes
4answers
4k views

How to share my localhost over the internet?

I really want to share my localhost over the internet to show my friends the progress of the website we're working on, so that I don't need to upload it to the public server each time I make a change. ...
0
votes
1answer
596 views

does http://localhost/myapp from a desktop PC on a Windows network go through network firewall?

I am trying to find out if the (hardware) firewall on our network would be scanning packets when I type this in a browser window: http://localhost:51502/myapp. Would "localhost" packets be ...
24
votes
6answers
18k 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 ...
0
votes
0answers
836 views

Accessing localhost on my iPhone

I've found similarly titled questions, but none that directly address my issue. I'm running Google App Engine server on my Macbook, and it was configured to use port 8080 on localhost. And so anytime ...
1
vote
0answers
267 views

Accessing local sites from IE10 Metro mode [duplicate]

Possible Duplicate: How to test local sites in Metro IE10? I've just installed the Windows 8 Consumer Preview to test my websites in IE 10. I'm running the Win8CP in a virtual machine in ...
8
votes
3answers
1k views

Isn't localhost simply 127.0.0.1 on Mac OS X 10.7 (Lion)?

I tried telnet localhost on Mac OS X Lion, and this is the output I got. Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address ...
0
votes
0answers
276 views

sudo su and ssh localhost are failing

When I try to do sudo su I get the following errors. sudo: /etc/sudoers is mode 0777, should be 0440 sudo: no valid sudoers sources found, quitting I tried following the post ...
0
votes
0answers
447 views

How can I use my own, external IP instead of localhost with Glassfish?

I am using Glassfish v3 to develop couple of servlets. For testing the servlets the localhost:8080/MyServlet is working fine. But whenever I am using IP instead of localhost, its returning an error, ...
0
votes
3answers
358 views

Browse local website on mobile device (ie; without deployment to web)

I am developing a website on my Windows 7 pc at home and want to test it on mobile devices. How can I connect from, say, an iPod Touch to the localhost website on my local machine? Thanks
3
votes
1answer
4k views

How Do I Access localHost From VMware when even the computer isn't accessible from the network [closed]

There are several threads regarding accessing host's localhost from a guest OS. None attracts my specific problem, therefor IMHO this question isn't a duplication. I did follow all the steps appear ...
1
vote
1answer
796 views

Trying to access localhost mamp from iPad

I want to visit my localhost that is being served by mamp on my iPad to do some testing. All the places I looked online say just to visit ip:8888. This results in Safari showing a "server stopped ...
0
votes
1answer
565 views

Open port in Window 7 for local client-server development and debugging

I am writing a C# console application for Windows 7 that can send and listen to packets (client or server). Since I only have one computer, I will have to debug and test my code locally. I first ...
0
votes
0answers
71 views

Java server Stopped working on my computer, why?

I installed JIRA yesterday on my OSX computer. It worked by going to the address: localhost:8080 I Turned off my computer yesterday, and today when I tried to go there, I got: Oops! Google Chrome ...
1
vote
2answers
961 views

Apache suddenly stops serving to LAN computers, now only localhost

TLDR: Apache WAS serving pages to LAN computers, but suddenly only works on localhost. Background info: (I discovered the WAMP, XAMPP, etc packages a day after) I built a WAMP server individually, ...
2
votes
0answers
193 views

read localhost mail and send to locahost using Mail.app (or any other std mail client app)

I want to read the localhost mail on Mail.app. Currently I just type mail on the command line. If I can read "localhost" mail on my Mail.app, then can I send (or move mail from other accounts, e.g. ...
3
votes
1answer
11k 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 ...
0
votes
2answers
1k views

Host-only network with multiple VMs

What I'm trying to do is create a host-only network with multiple VMs so as to allow direct access between the host OS and the VMs, but to also allow the VMs limited access to the Internet for things ...
1
vote
1answer
3k views

Mac OS X 10.7 can't ping/telnet localhost

I'm developing using django/postgresql on Mac OS X 10.7 and suddenly I am unable to access the test server through http://localhost:8000/. I can make it listen on 0.0.0.0:8000 and then it works... ...
0
votes
0answers
321 views

Connecting to mysql on localhost using external hostname

I'm trying to connect to my server using the external IP Address... This works from an external machine but not from the machine which is running mysql. This is annoying as I would like to use the ...
6
votes
3answers
5k views

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 ...
0
votes
4answers
809 views

Make my Virtual Machine invisible to outside world

I am a total newbie to installing and working on server platform. Just to see how things work I went ahead with installing Ubuntu Server (LAMP) 11.10 on Virtualbox installed on a Ubuntu 11.10 desktop ...
0
votes
1answer
62 views

Do (did) all versions of Windows ship with a host file and do they all have a localhost entry

As I'm always creating mini test and developmet sites I'm writing a mini-web based script in php 5.3 to ease the creation of local dev sites on windows running a wamp stack which is intended to create ...
1
vote
2answers
8k views

How can I make localhost resolve to 127.0.0.1 instead of ::1?

When I ping localhost the address resolves to the ipv6 loopback of ::1 My MySQL and Apache installations expects the ipv4 address of 127.0.0.1 How can I configure my WindowsXP to resolve localhost ...
-1
votes
1answer
373 views

How can I block external access to my local Apache test server on OS X?

I use the built-in Apache 2 that comes with OS X (10.6.8 in my case) for development. I've been looking in access logs and seen I'm constantly poked from outside by nosy bots. I'd like to make it stop ...
2
votes
1answer
522 views

How can I publicly access 127.0.0.1 through my network IP address?

I have a lot of servers running under my localhost (127.0.0.1), and I also my vhosts file creating some neat aliases. But unfortunately I can't access it outside my computer, like for testing on ...
0
votes
2answers
8k views

WAMP not working on Windows 7 64bit

I just installed the latest WAMP on windows 7 64bit. The installation was successful but now WAMP doesn't open. It says 'Aestan Tray Menu has stopped working' and when I click on 'Close Program' it ...
0
votes
1answer
335 views

Is it possible to get communication work both ways in Virtual Box with NAT (not bridged) on Windows 7 host?

I have set up a virtual machine with Virtual Box. But I cant ping the virtual machine from the host Windows 7 if I have NAT on the virtual machine. I know it works with bridged but I would like it to ...
1
vote
1answer
2k views

Able to ping localhost, but cannot connect via my browser

I've seen similar questions, but couldn't find any answers for my problem. I'm using Windows 7 and Wamp for website development, and it was working fine until a couple of days ago. Now it won't let ...
1
vote
2answers
9k 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. ...
3
votes
1answer
4k views

How to map a IP adress to the localhost?

I want to map the IP adress 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 routing ...
0
votes
1answer
1k views

Certain websites redirect to 127.0.0.1. How do I fix this?

Facebook and Youtube in particular. Tried nslookup the address shows as 127.0.0.1. Checked the HOSTS file, it's fine. Ran Malwarebytes' Anti-Malware (didn't find any problems) and SpyBot Search and ...
3
votes
0answers
97 views

How can I send emails from my app “locally”? [closed]

I have an app that sends emails and I want to test it under high volumes of traffic (not because it needs to send high volumes of emails - because I'm debugging a problem that occurs rarely and is ...
1
vote
2answers
853 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 ...
1
vote
0answers
370 views

Debug - How to Access virtual host from Virtual Box machine?

If I configure my virtual box with NAT I can access my localhost MAMP page with: 10.0.2.2 If I configure windows hosts file with: 10.0.2.2 mysite.dev I could then access that same information by ...
3
votes
2answers
4k views

How to access http://localhost on the host operating system if the server is in a virtual machine?

I always used XAMPP for my LAMP environment and developed directly on Windows 7. But now I want to do all my web development on Linux so I installed Ubuntu in virtualbox and installed PHP/MySQL and ...
9
votes
1answer
2k views

Why is “It works!” showing up at my http://127.0.0.1 (localhost)?

So, I was playing around with Java sockets, servers and streams, the other day, and I decided, purely out of curiosity, expecting no good results, to open Google Chrome and navigate to 127.0.0.1, and ...
1
vote
2answers
235 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 ...
8
votes
4answers
23k 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 ...
0
votes
2answers
367 views

Connect to VM localhost virtual directory

I have an Ubuntu guest VM operating inside Windows 7 host (VirtualBox with Bridged Networking enabled). In my VM, instead of browsing to http://localhost/somesite I set up virtual directories in ...
1
vote
1answer
856 views

How to view Mamp Pro on a Mac OS X 10.6 from a PC over a LAN

I've been trying to test my sites on IE on my PC sitting next to my Mac over the LAN. I have Mamp Pro set up with port: 80 Mysql: 3306 with a virtual file with: 127.0.0.1 mysite.dev On my Windows ...
0
votes
1answer
704 views

http://localhost:8080/ points to firefox installation directory C:\Program Files\Mozilla Firefox

When I type http://localhost:8080/ in any of my windows browser, I see all the files listed in C:\Program Files\Mozilla Firefox which is my Firefox installation directory. I am not sure which http ...
10
votes
5answers
9k 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 ...
0
votes
2answers
133 views

I just installed Apache, MySQL and PHP stack on my Mac but now everytime I alter a file the OS asks me for my system password? How can I stop this?

I just installed Lion on my machine and I'm starting fresh. I thought I'd manually install an AMP stack on my machine. Also, I'm using my ~/Sites folder as my web root. However, now that everytime I ...
4
votes
1answer
765 views

Chrome slow on request against 127.0.0.1 via “fake” domain (domain.local)

I'm having troubles on my local dev environment with Chrome since an unknown moment in the past, some request (I would say about 90% of them) are really slow, it takes about 10 secs to start ...
2
votes
1answer
163 views

Changing ability to access via “localhost”

I've successfully used PHP/Apache/MySQL on my iMac several times in the past few months/years. However, I started using a new PHP book and moved things around a bit (obviously without knowing what I ...
0
votes
0answers
67 views

localhost:55555 only works with Opera [duplicate]

Possible Duplicate: WebMatrix/IIS Express only works with Opera! Older question... Which is dead... Basically, only Opera works opening localhost (IIS Express/WebMatrix). For details on ...