Created a server for the socket communication