Android Client, Pc Server Socket d'ont work over 3g

主宰稳场 提交于 2019-12-04 17:31:17

Most networks (Wifi and 3G) use NAT. NAT allows outbound connections, but prevents inbound (internet to device) connections.

When your server and device are both on the same network, as in your case, then this works as you are not traversing NAT gateway.

Rationale: what you are trying to do (connecting from internet to device) will not work in most networks.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!