0

Situation: on PC installed server, and available address with this site: http://localhost And installed Connectify Hotspot to share internet via wi-fi.

Also, I have android-device from which I need visit localhost on my PC. Via wi-fi is not principal.

How I can do this? I have read a lot of instructions, but they are for AVD (through 10.0.2.2), that I could do, but not with real device.

4

2 回答 2

1

我做到了。

  1. firewall在测试连接时禁用。
  2. 定义你wi-fi IP-addressipconfig
  3. 在本地服务器上,您需要使用它创建文件夹IP-address并放入此文件夹站点或其他内容,您想wi-fi在移动设备上打开。

例子:192.168.77.1/www/index.php

  1. 重新启动您的服务器。在此之后,您将能够通过您的wi-fi IP-address. 如果没有 - 重新启动服务器一次,或者出现问题:)
  2. 打开手机wi-fi并在浏览器中尝试访问wi-fi IP-address. 利润。
于 2013-05-23T14:42:22.873 回答
0

localhoston the device 指的是设备本身,而不是您的计算机。获取您的计算机 IP 地址(ifconfig在 linux 或 mac 系统上)并使用它而不是localhost.

于 2013-05-22T16:52:59.113 回答