【问题标题】:Different IP from Android device (3G) and whatismyip.com?Android 设备 (3G) 和 whatismyip.com 的 IP 不同?
【发布时间】:2012-08-26 16:54:48
【问题描述】:

为什么我得到一个不同的 ip 使用:

Getting the IP address of the android device when connected to 3G mobile network

我通过访问 whatismyip.com 进行操作,有没有办法获得“真实 ip”。

我看到的两个ip之间的区别是发送UDP包到whatismyip.com的ip比android提供的ip快得多。

我还在 logcat 中看到 whatismyip.com 的 IP 地址正在被其他服务找到:

I/pppd (3178):本地 IP 地址 107.52.xxx.xxx
I/pppd(3178):远程IP地址66.1.xxx.xxx

所以一定有办法......或者其他一些服务正在从某个网络服务获取 ip

【问题讨论】:

    标签: android networking


    【解决方案1】:

    可能是您的 ISP NAT 您的连接,因此使用 whatismyip.com 您会看到公共 IP,使用该 Android 代码您会看到私有(本地)IP

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-10-12
      • 2012-02-12
      • 1970-01-01
      • 2019-11-13
      • 1970-01-01
      • 2021-07-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多