accepting port as 0 to let TCPServer assign it automatically.