If you have a users IP address you can detect generally where they are in the word with a process called geolocation.
This script provides a simple way of looking up the location of a user by there IP address.
Enter an up address to look up where it approximate came from
This IP address (38.103.63.59) came from Washington, United States
| Country_code: | US (USA) |
| Country_name: | United States |
| Region: | DC |
| City: | Washington |
| Postal_code: | 20007 |
| Latitude: | 38.9144 |
| Longitude: | -77.0763 |
| DMA_code: | 511 |
| area_code: | 202 |
Since we know the Latitude and Longitude of your ip address we can plot a map of where you are in the word with the help of Google Maps
The map should show your ISP's closest router to your house. It may be a few blocks away depending on your area.
Written by: Steven Smethurst
Feel free to contact me