creates the socket