bugfix: had to call ntohs() on received port number