Support Forums
IP locator websites..? - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36)
+---- Forum: Website Development (https://www.supportforums.net/forumdisplay.php?fid=43)
+---- Thread: IP locator websites..? (/showthread.php?tid=11618)

Pages: 1 2


IP locator websites..? - Fragma - 08-29-2010

So I have been wondering, how do sites like http://whatismyipaddress.com/ gather so much information from an IP address? Where do they grab the information from?

If I was to create an IP locator, how would I go about doing it?

Thanks a lot,
- Jack


RE: IP locator websites..? - Sam - 08-29-2010

Not sure, but to print IP's then example PHP would be:

Code:
?echo $_SERVER['REMOTE_ADDR'];?>



RE: IP locator websites..? - Michaelmhmhmh - 08-29-2010

Theres a site that says the browser the person is using/ ip/ router


RE: IP locator websites..? - Fragma - 08-29-2010

I was more wondering about the information gathered from the IP address. Such as ISP, Host, City, Country, Proxy, etc...


RE: IP locator websites..? - Sam - 08-29-2010

I'm guessing they somehow request it through the ISP. Not all are 100% my IP is traced to a couple of miles away from where I actually live.


RE: IP locator websites..? - Proof - 08-31-2010

There are several pre-defined functions in PHP.

To be honest I would just use a site rather than make one..
http://www.geobytes.com/IpLocator.htm

(08-29-2010, 09:17 AM)Fragma Wrote: I was more wondering about the information gathered from the IP address. Such as ISP, Host, City, Country, Proxy, etc...

IP address
PHP Code:
<?php $_SERVER['REMOTE_ADDR'?>

Host
PHP Code:
<?php $_SERVER['REMOTE_HOST'?>

Browser info..
PHP Code:
<?php $_SERVER['HTTP_USER_AGENT'?>



RE: IP locator websites..? - !!* Alone Vampire *!! - 09-02-2010

Small javascript I have which will make your work simple.

PHP Code:
<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>

<
br>Country Code:
<
script language="JavaScript">document.write(geoip_country_code());</script>
<
br>Country Name:
<
script language="JavaScript">document.write(geoip_country_name());</script>
<
br>City:
<
script language="JavaScript">document.write(geoip_city());</script>
<
br>Region:
<
script language="JavaScript">document.write(geoip_region());</script>
<
br>Region Name:
<
script language="JavaScript">document.write(geoip_region_name());</script>
<
br>Latitude:
<
script language="JavaScript">document.write(geoip_latitude());</script>
<
br>Longitude:
<
script language="JavaScript">document.write(geoip_longitude());</script>
<
br>Postal Code:
<
script language="JavaScript">document.write(geoip_postal_code());</script
Hope, I helped you.


RE: IP locator websites..? - Fragma - 09-03-2010

Thanks but I was actually wanting to implement this into a desktop application without having to use a website like http://whatismyipaddress.com/ to gather the information.


RE: IP locator websites..? - !!* Alone Vampire *!! - 09-03-2010

Then work in vb.net


RE: IP locator websites..? - Fragma - 09-03-2010

Sorry but you have misunderstood totally. I want to know the process in which websites gather so much information purely by having an IP address. Where do they get the information from?