Hi, In my application the server needs the location of client. For e.g if a client say "A" is accessing the website from say a place "B" then the server needs this information. This location should be the exact location and not the country from where the client is accessing.
I don't think you'll be able to do this with much reliability.
The best you could do is use their IP (request.getRemoteAddr()) to try to look up the location. There are/were some public databases that attempted to keep track of IP numbers and their latitude and longitude but I don't think there is a formal system for keeping them up to date though.
Also, getRemoteAddr isn't necessarily going to get you the actual IP of the user. They may be running though a proxy or VPN in another city, state, or country altogether.