Set port for TCP server.