• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting location information from the IP

 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ranchers,

I want to build an application which will get the IP address of the client machine and based on the IP address the location of the client will be determined and that info will be pasted on a Map.Does anyone have any idea how this can be done.Determining the IP address is pretty simple but i am unable to locate the machine from the IP address.If anyone has worked on this before please guide me.Waiting for the reply...

Thanks and Regards
Girish
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're apparently not subscribed to the JavaRanch Journal, where we recently had an article on this very subject. Shame on you :-)
[ August 13, 2008: Message edited by: Ulf Dittmer ]
 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Of course, the location information is just an informed estimate. Just as "on the internet, no one knows you are a dog" on the 'net, no one really knows where an IP address is.

This may improve when IPv6 is widespread, but NATs to a great job of obfuscating location.

More importantly, sometimes, the network doesn't do what you expect. A while ago, I worked for a worldwide consulting company. When I was in their Dusseldorf Germany office, I noticed that the IP addresses were part of their Fairfax VA (USA) office. And with a little investigation, the main, fastest link was a T1 from Germany to the US. So the IP address's geolocation was off by a few thousand miles, a major ocean, and several international borders.
 
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ulf Dittmer:
You're apparently not subscribed to the JavaRanch Journal, where we recently had an article on this very subject. Shame on you :-)

[ August 13, 2008: Message edited by: Ulf Dittmer ]



Easy Ulf... I'm subscribed to the newsletter but I only noticed the very nice article on Mapping IP's when I was about to clean up my mail.

Hope to see really exciting topics like this one in your next release!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic