Updated SocketServer code with ip string