Updated the sockets to connect to server