Setting up the sockets