Changed the setup of the socket.

I used sock.bind to connect our socket to a port (and to our ip). I read
that this is how you keep a socket open for longer than one transaction.
I'm not sure if we need this or not but it seemed correct.