Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Connect to localhost from another computer

Hi all I'm trying to access a database that is hosted in a laptop localhost from my android device which is both connected to the same network.

The localhost project is running at www.localhost:8000/

I've entered the ip: (of my laptop connection) to my phone browser and i was able to see the root folder of my project. However when i attempted to run it at , I was not able to access anything and the web browser returned "Webpage not available".

So the issue now is that I can access the root folder using my android device but I cannot access the "localhost server" of my laptop. Is there anyway I can solve it ? THanks !

share|improve this question

migrated from Jul 10 '11 at 0:09

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Sathya Jul 19 '11 at 11:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I realize that you need to connect to your database for your development work, but this isn't really a programming question. It's a question about configuring your database server, so it would probably get a much better response on serverfault or superuser. – Flimzy Jul 9 '11 at 12:25
Hi Flimzy ! Thanks for your answer. Yea cos I found some similar questions on Stackoverflow and hence went ahead to post the question. I wanted to try and have my other devices connect to the localhost database to try out the connection :D – jamen Jul 9 '11 at 12:34
up vote 1 down vote accepted

Just because the device has two IP addresses ( and, aka localhost or loopback), doesn't mean the server is listening on both addresses.

share|improve this answer
Hi Kevin, thanks for your answer. So are you saying i'd need to go into the etc/hosts file to comment off one of the ip for it to work ? – jamen Jul 9 '11 at 13:03

Not the answer you're looking for? Browse other questions tagged or ask your own question.