[Answered ]-How get the "real" user ip address?

1👍

The only method available server side is IP, which will always resolve to your ISP.

The more advanced methods present a security risk, so the user gets prompted to allow them (thus only available client side). Take a look at HTML5 GEO for more info:

http://html5demos.com/geo

http://dev.w3.org/geo/api/spec-source.html

1👍

You won’t be able to get anything more precise than this. The IP address being reported is the right one, but IP address location is dependent on the ISP. For a desktop computer, that’s as good as it gets.

The IP you are currently retrieving is the one that is received by your application, for all the web app know, that’s you, but you could be behind a proxy or a VPN, and the app would never know.

Leave a comment