【问题标题】:Apache - How to access server from Mobile NetworkApache - 如何从移动网络访问服务器
【发布时间】:2014-01-26 23:57:32
【问题描述】:

我一直在调试我的 Android 应用程序,方法是通过 USB 连接我的设备并通过 Wi-Fi 将其连接到服务器,以标准 192.168.1.x 作为目标

现在我需要传播我的应用程序以进行一些“beta 测试”,但我需要允许来自路由器外部的连接才能做到这一点。

我阅读并找到了一些建议,这是我得到的最好的线索

If it's connected to your mobile network, then first find out 
your router external IP address, then forward some port to that 
10.0.2.2:portno and finally you'll be able to see that server from 
your device.

谁能解释我该怎么做?

比如我的路由器IP是xxx.xxx.xxx.xxx,我的server-pc是192.168.1.5,WAMP使用的端口是80

我该怎么办?

【问题讨论】:

    标签: android apache wamp


    【解决方案1】:

    您需要编辑路由器本身的配置。

    登录,然后转到指定的部分Port Forwarding。添加一条记录,将所有 80 端口的流量转发到192.168.1.5

    【讨论】:

      猜你喜欢
      • 2014-03-26
      • 2023-03-20
      • 1970-01-01
      • 1970-01-01
      • 2011-08-13
      • 2012-10-07
      • 1970-01-01
      • 2020-04-17
      • 2020-12-29
      相关资源
      最近更新 更多