Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 public ip address of mobile devices

views
     
TSnarf03
post Oct 14 2021, 01:07 PM, updated 3y ago

Look at all my stars!!
*******
Senior Member
4,545 posts

Joined: Dec 2004
From: Metro Prima, Kuala Lumpur, Malaysia, Earth, Sol


When you use phone's 2g/3g/4g/5g(not wifi), you supposed to have an ip address, i wonder from these ip alone, can u tell where the device is ?


Ie i have a webpage, and those phone access to my page, can i know their location from their ip address alone ?

I do not need to be very accurate, just need to know what country/state, need not to know area/street. Is it possible ?

Thanks.
SUSjbcoder
post Oct 14 2021, 01:22 PM

Enthusiast
*****
Junior Member
783 posts

Joined: Sep 2019
QUOTE(narf03 @ Oct 14 2021, 01:07 PM)
When you use phone's 2g/3g/4g/5g(not wifi), you supposed to have an ip address, i wonder from these ip alone, can u tell where the device is ?
Ie i have a webpage, and those phone access to my page, can i know their __cpLocation from their ip address alone ?

I do not need to be very accurate, just need to know what country/state, need not to know area/street. Is it possible ?

Thanks.
*
mobile cell network usually uses proxies for all clients. You can't tell between clients other than browser user agents.

If your website is registered as a content provider to each mobile cell network, you get forwarded additional information at the discretion of each cell network provider.

These information could be your MSISDN (cell phone number) and others, depending on what the mobile operator wants to forward to you.

If you're not a content provider, you don't get the MSISDN. You must be registered for each individual telco and this costs $$$$$$.


But to actually know the location, i doubt so unless you implement this.

https://developer.mozilla.org/en-US/docs/We...Geolocation_API
angch
post Oct 14 2021, 05:32 PM

On my way
****
Junior Member
635 posts

Joined: Jul 2006
Yes, https://www.maxmind.com/en/geoip-demo

Or manifested as https://www.php.net/manual/en/book.geoip.php

etc, etc.

https://dev.maxmind.com/geoip/legacy/databases?lang=en

Or straight up integrate that via your webserver logs in your favourite ELK stack: https://www.digitalocean.com/community/tuto...tash-and-kibana

This post has been edited by angch: Oct 14 2021, 05:35 PM
Find The Way
post Oct 14 2021, 07:36 PM

Enthusiast
*****
Senior Member
724 posts

Joined: Nov 2004


Did a quick search on google recently, but I haven't implement it yet. Two methods:
1) geolocation API/services. Need to get permission from user through browser.
2) ip 2 location mapping databases/services. From what I read not as accurate as solution #1. If accuracy is not too important I prefer (2) personally.

Any other options?
Peter_APIIT
post Oct 15 2021, 03:26 PM

Casual
***
Junior Member
364 posts

Joined: Mar 2008


Interesting.
TSnarf03
post Oct 15 2021, 03:49 PM

Look at all my stars!!
*******
Senior Member
4,545 posts

Joined: Dec 2004
From: Metro Prima, Kuala Lumpur, Malaysia, Earth, Sol


QUOTE(Peter_APIIT @ Oct 15 2021, 03:26 PM)
Interesting.
*
noticed your last few posts all either a short sentence or a word, most if not all of them are complete pointless, do not jack up your post counts using this method, by posting junk. go to kopitiam if you want to do like that.

 

Change to:
| Lo-Fi Version
0.0132sec    0.37    5 queries    GZIP Disabled
Time is now: 29th March 2024 - 10:57 PM