我可以使用3g ip连接到我的iphone吗? [英] Could I connect to my iphone using 3g ip?

查看:61
本文介绍了我可以使用3g ip连接到我的iphone吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是出于好奇.可以说我在手机上安装了lighttpd(或与此相关的任何服务).从我的PC上ping IP导致连接超时,并且清除了iPhone内部防火墙是不存在的(好吧,我相信还是没有).因此,要获得可接受的答案,您将需要涵盖这些理由...

This question is for pure curiosity. Lets say I have lighttpd installed on my phone (or any service for that matter). Pinging the ip from my pc results in timed out connection and its clear the iphones internal firewall is non existent (well I believe no anyways). so for an accepted answer you will need to cover these grounds...

  1. 如果提供商阻止了此流量,那么1如何创建允许3g监听端口上通过tcp连接的应用程序?

  1. If the provider is blocking this traffic, then how does 1 create apps allowing connections through tcp on a listening port over 3g?

苹果如何推送服务/iMessage将数据传输到设备?该服务本身不使用tcp协议在端口上侦听吗?

How does apples push service / iMessage work to transfere data to the device? Wouldn't this service itself use a tcp protocol listening on a port?

再次说明提供商是否阻止了此流量,他们如何确定它是iphone而不是无线加密狗(它也使用sim卡,我认为可以从外部进行连接,尽管不是100%肯定).

Again if the provider is blocking this traffic, How do they determine its an iphone and not a wireless dongle (which also uses sim cards and I THINK allows connections externally although im not 100% sure).

我问的原因是因为我考虑了用于电话的Web服务器,该服务器允许管理以及位置概述和状态等.但是,如果没有太多的连接,这将是毫无意义的,而且有关动态IP的问题将会一直存在.通过将ip地址更新到外部服务器可以解决此问题.

Reason i ask is because i thought about a web server for the phone which allows administration aswell as location overviews and status etc. but this would be pointless if there was no way too connect, and the issue about dynamic ip would of been overcome by updating the ip address to an external server.

推荐答案

  1. 您的提供商很可能会为您提供位于多对一NAT网关后面的IPv4地址.因此,它们本身并不会阻止您的IP地址,但是由于多对一NAT的状态性,您将无法从NAT外部访问NAT内部的任何内容.希望当IPv6开始在手机中流行时,这种情况将会改变.由于这些IP地址没有短缺,因此无需进行NAT.

  1. Your provider is very likely giving you an IPv4 address that is behind a many-to-one NAT gateway. So they are not blocking your IP address per se, but you won't be able to reach anything inside the NAT from outside the NAT due to the statefulness of many-to-one NAT. Hopefully this situation will change when IPv6 starts becoming popular for mobile phones. As there is no short supply of those IP addresses, there is no need to NAT.

与其他所有推服务一样,它实际上可能是电话向互联网上知名服务器发起的连接.手机打开后,通知服务器会通过此连接发送通知.

Like every other push service, it's probably actually a connection that it initiated by the phone toward a well-known server on the Internet. The notification server sends notifications down this connection after the phone opens it.

您是什么让他们认为他们检测(或关心)在PDP上下文的另一端是否连接了电话,平板电脑,系留设备或3G软件狗?

What makes you think they detect (or care) whether a phone, tablet, tethered device, or 3G dongle is connected at the other end of the PDP context?

更新有关APN的信息

您的运营商很有可能会给您的电话提供一个经过NAT转换的IP地址,并为您的3G加密狗提供一个真实的公共IP地址,因为它们正在连接到不同的APN. 3G软件狗使用的APN的名称甚至可能是一个严密保护的秘密,以通过重新配置电话以使用用于加密狗的APN来阻止想要获得其电话的公共IP地址的用户.该APN将在加密狗中预先配置,并且难以提取.之所以这样做,是因为公共IP地址的供应有限,并且运营商不想将其浪费在电话上(而且那里的电话比3G软件狗还多).

It is very possible that your carrier gives a NATted IP address to your phone and a true public IP address to your 3G dongle because they are connecting to different APNs. The name of the APN that the 3G dongle is using may even be a closely guarded secret in order to thwart users who want to get a public IP address for their phone by reconfiguring their phone touse the APN intended for dongles. That APN would be preconfigured inside the dongle and difficult to extract. This would be done because public IP addresses are in limited supply and the carrier doesn't want to waste them on phones (and there are way more phones out there than there are 3G dongles).

以上段落是推测性的,并且取决于运营商,但似乎有些运营商会这样做.

The above paragraph is speculative and carrier-dependent, but it seems likely that some carriers would do that.

这篇关于我可以使用3g ip连接到我的iphone吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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