make getIP static so it could be called from ClientFacingTCPServer