put port in network order