Getting user location and ip address

This may help