简体   繁体   中英

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.

I'd like to know if iPhones on 3G networks are connectable and whether or not I will need to traverse NAT devices.

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. I doubt that they will do this for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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