Updated server code to connect on the internet