I have one problem. I have EasyPHP server on my local computer. I am making program that is connecting to PHP scripts and returns me result to my local PC. Everything works nice I am using 127.0.0.1:8888 address and port. I used 8888 because I needed port 80 for something else. I am connected to my wireless at my place. I put application on my android and change address to 192.168.1.101:8888/page.php and I can't get results back? Anyone knows how can I connect to localhost server trough some other devices which are on same network in my case wireless.
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
Your webserver is probably only listening on localhost (127.0.0.1), which cant be accessed from any other computer. You want your webserver to listen on all IP addresses. If you are using Apache, edit your config and make sure that your listen line looks like this:
and your virtual host entry (if you got one) like this:
This will cause Apache to listen on all interfaces. |
|||||||||
|