0

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 http://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.

Hennes
  • 65,804
  • 7
  • 115
  • 169
user123_456
  • 509
  • 4
  • 17
  • 26

1 Answers1

1

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:

Listen 8888

and your virtual host entry (if you got one) like this:

<VirtualHost *:8888>

This will cause Apache to listen on all interfaces.

jhenninger
  • 1,731