Fixed issue when external ip is not found