Return the socket when creating one