2014-01-26 61 views
0

我一直在努力通过USB我的设备连接,并通过无线网络将其连接到服务器上,使用标准为192.168.1.x作为目标调试我的Android应用阿帕奇 - 如何从移动网络接入服务器

现在我需要传播我的应用程序进行一些“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,我的服务器,PC是192.168.1.5和WAMP使用的端口是80

我该怎么办?

回答

0

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

登录,并转到指定为Port Forwarding的部分。添加记录以将所有端口80流量转发至192.168.1.5