make the server ip address detection more super robust