Define listener
Replace tcpsocket.Listen with listener.listen
Replace tcpsocket.Accept with listener.accept, and tcpsocket.Close with
listener.close
Have no idea what I'm doing :) Define another TcpListener
Replace GetLocalAddress with getLocalAddress