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 my QT 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
EDIT 2:
This is a part to change virtual host:
#
# # Use name-based virtual hosting.
# #
# NameVirtualHost *:8888
#
# #
# # VirtualHost example:
# # Almost any Apache directive may go into a VirtualHost container.
# # The first VirtualHost section is used for all requests that do not
# # match a ServerName or ServerAlias in any <VirtualHost> block.
# #
# <VirtualHost *:8888>
# ServerAdmin webmaster@dummy-host.127.0.0.1
# DocumentRoot "${path}/apache/docs/dummy-host.127.0.0.1"
# ServerName dummy-host.127.0.0.1
# ServerAlias www.dummy-host.127.0.0.1
# ErrorLog "logs/dummy-host.127.0.0.1-error.log"
# CustomLog "logs/dummy-host.127.0.0.1-access.log" common
# </VirtualHost>
#
# <VirtualHost *:8888>
# ServerAdmin webmaster@dummy-host2.127.0.0.1
# DocumentRoot "${path}/apache/docs/dummy-host2.127.0.0.1"
# ServerName dummy-host2.127.0.0.1
# ErrorLog "logs/dummy-host2.127.0.0.1-error.log"
# CustomLog "logs/dummy-host2.127.0.0.1-access.log" common
# </VirtualHost>
anything wrong in it?
Most likely, EasyPHP access on port 8888 is blocked by your computer’s firewall. See this guide how to open the firewall to allow remote access to a port on Windows 7.
You also need to check your
Listenline in httpd.conf, if it’s set toListen 127.0.0.1:8888if will only respond to incoming connections from localhost, whileListen 8888means it will respond to all incoming requests on that port.