CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   How can i access localhost from my phone? (http://www.codingforums.com/showthread.php?t=283297)

elhippie 11-30-2012 02:19 PM

How can i access localhost from my phone?
 
of course i can access localhost on my pc, but i wanna access it on my andriod, we are sharing the same network via wifi

thnks for the help this would help alot :D

XmisterIS 11-30-2012 02:29 PM

You should just be able to go to localhost on your phone's browser like you would on any other machine. Type localhost into the address bar on your phone's browser and tap 'go' ... it should work!

elhippie 11-30-2012 11:53 PM

that doesn't work so im thinking firewall settings

elhippie 12-01-2012 12:09 AM

doesnt work and fire wall setting are off any suggestions?

stevenmw 12-01-2012 02:31 AM

That's odd. it should simply work. Log into your router and look for connected devices. If your phone shows up in the list then that is even more odd, but if it isn't you know it isn't on the LAN.

If it works on your pc, it should work on your phone. You're absolutely sure you're on the same LAN? Make sure your 3 or 4 g is turned off, and only wifi is on your phone.

Try 127.0.0.1

felgall 12-01-2012 06:02 AM

localhost is always the web server running on the device you are using. Presumably your phone isn't running a web server and you want to access the web server on your local computer - in which case just substitute the IP address of that computer and don't use 127.0.0.1

For example if the server is running on a computer with IP address 192.168.1.25 then on that computer 127.0.0.1, localhost and 192.168.1.25 all point to the same place but the only one that points to the web server on that computer from other devices is 192.168.1.25

elhippie 12-01-2012 04:27 PM

Quote:

Originally Posted by felgall (Post 1296396)
localhost is always the web server running on the device you are using. Presumably your phone isn't running a web server and you want to access the web server on your local computer - in which case just substitute the IP address of that computer and don't use 127.0.0.1

For example if the server is running on a computer with IP address 192.168.1.25 then on that computer 127.0.0.1, localhost and 192.168.1.25 all point to the same place but the only one that points to the web server on that computer from other devices is 192.168.1.25

i wanna write a rap song about you :thumbsup:

XmisterIS 12-03-2012 11:51 AM

Quote:

Originally Posted by felgall (Post 1296396)
localhost is always the web server running on the device you are using. Presumably your phone isn't running a web server and you want to access the web server on your local computer - in which case just substitute the IP address of that computer and don't use 127.0.0.1

For example if the server is running on a computer with IP address 192.168.1.25 then on that computer 127.0.0.1, localhost and 192.168.1.25 all point to the same place but the only one that points to the web server on that computer from other devices is 192.168.1.25

*facepalm*

Yes, that's perfectly obvious now that you've pointed out the obvious! :rolleyes:


All times are GMT +1. The time now is 04:43 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.