newb Posted January 24, 2012 Share Posted January 24, 2012 how can i get the city & state and country of an ip address in a php script? Link to comment https://forums.phpfreaks.com/topic/255704-city-state-and-country-of-ip-adress-location/ Share on other sites More sharing options...
Pikachu2000 Posted January 24, 2012 Share Posted January 24, 2012 Google 'IP geolocation'. Link to comment https://forums.phpfreaks.com/topic/255704-city-state-and-country-of-ip-adress-location/#findComment-1310815 Share on other sites More sharing options...
newb Posted January 24, 2012 Author Share Posted January 24, 2012 so thers no simple build in function for this ? Link to comment https://forums.phpfreaks.com/topic/255704-city-state-and-country-of-ip-adress-location/#findComment-1310817 Share on other sites More sharing options...
Andy-H Posted January 24, 2012 Share Posted January 24, 2012 no lol, I think geolocation get info from ISP's, personally I think it's an invasion of privacy, but you just gotta accept that in big bro society. Sometimes you can get location from a tracert, ie C:\Users\Andy>tracert google.com Tracing route to google.com [209.85.229.147] over a maximum of 30 hops: 1 2 ms 1 ms 1 ms www.routerlogin.com [192.168.0.1] 2 20 ms 15 ms 14 ms host82-14-174-5.not-set-yet.ntli.net [82.14.174. 5] 3 14 ms 14 ms 13 ms host82-14-172-113.not-set-yet.ntli.net [82.14.17 2.113] 4 14 ms 14 ms 14 ms host82-14-174-97.not-set-yet.ntli.net [82.14.174 .97] 5 14 ms 14 ms 14 ms manc-core-2a-xe-1110-0.network.virginmedia.net [ 86.28.65.49] 6 14 ms 14 ms 14 ms manc-bb-1a-ae12-0.network.virginmedia.net [82.15 .206.245] 7 15 ms 14 ms 14 ms manc-bb-1b-ae0-0.network.virginmedia.net [62.253 .187.178] 8 21 ms 21 ms 20 ms tele-ic-3-ae0-0.network.virginmedia.net [212.43. 163.70] 9 20 ms 21 ms 21 ms 158-14-250-212.static.virginmedia.com [212.250.1 4.158] 10 21 ms 21 ms 22 ms 209.85.252.76 11 24 ms 21 ms 20 ms 209.85.253.92 12 27 ms 27 ms 27 ms 72.14.232.134 13 27 ms 27 ms 27 ms 209.85.251.231 14 37 ms 35 ms * 209.85.243.81 15 26 ms 27 ms 27 ms ww-in-f147.1e100.net [209.85.229.147] Trace complete. manc[hester] but that's extremely unreliable Link to comment https://forums.phpfreaks.com/topic/255704-city-state-and-country-of-ip-adress-location/#findComment-1310829 Share on other sites More sharing options...
Pikachu2000 Posted January 25, 2012 Share Posted January 25, 2012 The information returned from a traceroute is nothing but the hostname of the router/switch/intermediary device. They could name a switch in Hawaii, 'McMurdo Station, Antactica' if they felt like it. Link to comment https://forums.phpfreaks.com/topic/255704-city-state-and-country-of-ip-adress-location/#findComment-1310846 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.