Use htons to parse port