Set up a socket (doesn't work yet)