Google Chrome on Android sends wrong IP Address to Server

705 views
Skip to first unread message

bm13...@gmail.com

unread,
Apr 4, 2017, 12:56:21 PM4/4/17
to Google Chrome Developer Tools

Hello!

I am developping a website with ASP.Net using the sender's IP address (in System.Web.HttpRequest.UserHostAddress) for geolocation.

 

When this website is called from Google Chrome on Android, a wrong IP address is sent. The geolocator resolves this address to "Europe".

Parameters sent from Android Chrome:

IP adress: 66.249.93.91

User Agent: AppleMAC-Safari, Mozilla/5.0 (Linux; Android 6.0.1; SM-A300FU Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Mobile Safari/537.36

Parameters sent from Android's (Samsung's?) built in browser:

IP address: 79.228.228.198

User Agent: AppleMAC-Safari, Mozilla/5.0 (Linux; Android 6.0.1; SAMSUNG SM-A300FU Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/44.0.2403.133 Mobile Safari/537.36

Some IP locators assign the first IP to "Google Inc, California, United States", some to "Google Inc., Chicago, Illinois", some to "Google Inc., Europe" (see https://www.iplocation.net/).

The second IP seems to be correct: "Deutsche Telekom AG, Berlin, Germany".

Is this a bug in Chrome or must I go a different way to retrieve the sender's IP address?

PhistucK

unread,
Apr 4, 2017, 1:00:12 PM4/4/17
to Google Chrome Developer Tools
Chrome for Android probably has Data Reduction Proxy enabled, which makes Google access HTTP websites on behalf of the user. It reduces quality of images and videos in order to speed up loading webpages.
This document answers your question (the penultimate question) -

However, this group discusses the Developer Tools feature of Google Chrome and not general web development issues.


PhistucK

--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/6af75b94-add8-4514-9a8c-12515fbb44fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages