proper local ip address detection and update geolocation database