是否可以通过 TCP 连接到侦听 3G 网络端口的 iPhone? [英] Is it possible to TCP connect to an iPhone listening on a port on a 3G network?

查看:35
本文介绍了是否可以通过 TCP 连接到侦听 3G 网络端口的 iPhone?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个严重依赖 P2P 的应用,但我目前没有任何可用于实验的 SIM 卡,因此我正在 wifi 网络上进行测试.

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.

我想知道 3G 网络上的 iPhone 是否可以连接,以及我是否需要遍历 NAT 设备.

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

推荐答案

您在提供商的路由器后面,您的 IP 地址将类似于 10.xxx - 所以您必须告诉路由器,TCP 连接从互联网到端口 9420 应转发到您的设备.我怀疑他们会为你做这件事.

You're behind the provider's router and your IP address will be something like 10.x.x.x - 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.

这篇关于是否可以通过 TCP 连接到侦听 3G 网络端口的 iPhone?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆