Updated connect to access the server from outside