简体   繁体   English

是否可以将TCP连接到在3G网络端口上侦听的iPhone?

[英]Is it possible to TCP connect to an iPhone listening on a port on a 3G network?

I'm working on an app that relies heavily on P2P, but I currently don't have any SIM cards with which to experiment so I'm testing on a wifi network. 我正在开发一个高度依赖P2P的应用程序,但是我目前没有可用于试验的SIM卡,因此我正在wifi网络上进行测试。

I'd like to know if iPhones on 3G networks are connectable and whether or not I will need to traverse NAT devices. 我想知道3G网络上的iPhone是否可连接,以及是否需要遍历NAT设备。

You're behind the provider's router and your IP address will be something like 10.xxx - so you'd have the tell the router, that a TCP connect from the internet to port 9420 should be forwarded to your device. 您位于提供商路由器的后面,并且IP地址将类似于10.xxx-因此,您要告诉路由器,从互联网到端口9420的TCP连接应该转发到您的设备。 I doubt that they will do this for you. 我怀疑他们会为您这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM