Added the ability to specify the server's IP during login and register