For my upcoming application I need to find the location of the user.
I am doing this by using the “GeoIp” plugin.
For geoIp I have to find the IP address of the incoming request.
I have written the code to get the IP address:-
But it is giving me the IP address of the machine. Is it right?
If yes then how the GeoIp will find the location of the machine.
I have tried some online demo’s which actually detect the IP address of
the router and depending on that they are finding the location.
Can anyone tell me Am I on right path?