Fix port enconding. It is enconded in network order.