javascript - Why is the IP address different between mobile devices and desktoplaptop? - Stack Overflow

I'm having 2 different IP address connecting on the same WiFi connection.LaptopDesktop: 58.110.xx

I'm having 2 different IP address connecting on the same WiFi connection.

  • Laptop/Desktop: 58.110.xxx.xxx
  • iPad/Android phone: 66.249.xx.xxx

This difference causes my country detection rendered incorrectly between laptop and mobile devices. I use Geo php (maxmind) that's based on IP address.

Any help would be appreciated. Thanks.

I'm having 2 different IP address connecting on the same WiFi connection.

  • Laptop/Desktop: 58.110.xxx.xxx
  • iPad/Android phone: 66.249.xx.xxx

This difference causes my country detection rendered incorrectly between laptop and mobile devices. I use Geo php (maxmind) that's based on IP address.

Any help would be appreciated. Thanks.

Share Improve this question edited Sep 1, 2015 at 3:10 Mike asked Aug 31, 2015 at 5:18 MikeMike 6791 gold badge12 silver badges17 bronze badges 5
  • If they were on the same network, wifi or otherwise, that scenario should be impossible. Perhaps your mobile device is connecting via cellular data service? On your laptop, check the network settings for gateway, netmask, etc. for some clues. – Jerry Commented Aug 31, 2015 at 5:39
  • 1 Disable your 2G/3G/4G in the iPad/Android and see. You should always get the same IP address if using a same network. – Michael C. Commented Aug 31, 2015 at 7:34
  • Jerry/Michael - They are disabled. My ipad is not SIM-enabled. I have also tried multiple locations and each location gives 2 different IP readings. Strange huh? – Mike Commented Aug 31, 2015 at 14:20
  • Another reason could be your iPad/Android has been configured to use a VPN tunnel. Can you visit ipaddress.my from all devices and let us know the ISP name? – Michael C. Commented Sep 1, 2015 at 1:43
  • Per ipaddress.my: Laptop: 110.33.xxx.xxx (ISP: Optus Internet - Retail) Android phone: 66.249.xx.xx (ISP: Google Inc) ipad: 66.249.xx.xx (ISP: Google Inc) All connected on the same wifi network. Is that because of the browser? If so, what php script etc possible to capture the right IP. As i need to identify the geo Country of our visitors. – Mike Commented Sep 1, 2015 at 2:00
Add a ment  | 

1 Answer 1

Reset to default 5

I might have figured out the issue. You are using Chrome in iPad and Android phone with "reduce data usage" feature enabled.

In this case, all your traffics are tunneling through Google servers to reduce data size. Therefore, all other web servers are detecting you as from USA (Google servers) instead of direct connection from Australia.

If you disable the "reduce data usage", you should get a direct connection from Australia to anywhere instead.

Please use http://ipaddress.my to test your IP address and ISP for confirmation.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744847213a4596913.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信