Was doing it wrong. Third attempt at network byte order