Fix #237, don't use ports in big endian