我有一个问题。我的本地计算机上安装了EasyPHP服务器。我正在制作连接到PHP脚本的程序,并将结果返回给本地PC。一切正常,我使用127.0.0.1:8888地址和端口。我使用8888,因为我需要其他端口80。我在我的地方与无线连接。我把我的QT应用程序放在我的android上,并将地址更改为192.168.1.101:8888/page.php,我无法获得结果吗?任何人都知道我怎么可以连接到本地主机服务器槽,能够在同一个网络上的我的情况下无线如何从android连接到localhost端口?
EDIT 2其他一些设备: 这是更改虚拟主机部分:
#
# # 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 [email protected]
# 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 [email protected]
# 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>
什么错在它?
你的本地计算机运行什么操作系统? – 2012-02-05 19:25:16
Windows 7旗舰版x86 – 2012-02-05 19:25:44