First iteration of socket server and serial server.