Adding htons/ntohs byte swapping, dont know if that helps