簡體   English   中英

Apache-如何從移動網絡訪問服務器

[英]Apache - How to access server from Mobile Network

我一直在通過通過USB連接我的設備並通過Wi-Fi將其連接到服務器(目標地址為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

我該怎么辦?

您將需要在路由器本身上編輯配置。

登錄,然后轉到“ Port Forwarding ”部分。 添加一條記錄,將所有端口80流量轉發到192.168.1.5

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM