Hi
I want to track the physical location of the client i.e The client who has logged in to my site I want to know their city/town and country.
I think there are 2 steps
1. Get the ip address of the machine
2. Let your app talk to some other add which can give you location of the client based on IP
Does not look like a big task considering google can pin point to the city from which request originated in google analytics.
But in
java this look a difficult task.
I cannot get IP from
servlet API like getRemoteAddress() because it returns IP of the proxy
In one of the postings in java ranch I found this java script code to get IP address which I think works (I am yet to
test it completly)
http://javascript.internet.com/user-details/ip-address.html
Now once I get the API I need to call another service to send me location of this client (If free , nothing like it).
I am not sure how this can be achieved. I also did not find any google API's which could offer this service.
Any suggestions and help would be appreciated.