Answer the question
In order to leave comments, you need to log in
Determine your mobile internet provider. Is it possible to?
It is necessary to determine the city of the user. For desktops with home Internet, I use ipgeobase.ru (for example, there is https://2ip.ru/ ). But if you log in from a mobile provider, then for small cities these IP identifiers often lie. They show the server of the nearest data center of the operator (serving the Internet traffic of regional cities), which is usually located in million cities. And of course the city is defined incorrectly.
I used mobiledetect.net in a couple of projects- but this thing determines the type of device, not the type of Internet connection. Has anyone faced a similar issue? The subject is not googled at all, or I am not formulating queries correctly (although I don’t seem to be a noob in Google). Can this be done with JS? Or with PHP? They threw the idea to collect IP ranges of mobile providers, but where to get such a base? There must be a solution .. maybe there are services that can prepare mobile providers?
UPD
There is such a thing:
echo $_SERVER['REMOTE_ADDR'];
echo gethostbyaddr($_SERVER['REMOTE_ADDR']);
217.66.156.6
host-6-156-66-217.spbmts.ru
Answer the question
In order to leave comments, you need to log in
only empirically
armed https://apps.db.ripe.net/search/query.html#results... (not only IP, but also Vimpelcom , for example, you can search
in addition, you can tools.tracemyip.org/ search--isp/vimpelcom (but here, you need to understand that Android can also use Wi-Fi)
and forward
, usually C-class networks do not mix (well, routers are the same everywhere), i.e. in home and mobile there will be different ranges
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question