00 00 08 03 - 2051, but if the bytes are actually in the file in the specified order, they are in the wrong order. The four-byte integer 0x0803 should be stored as 03 08 00 00 - the least significant byte or "low-end".
Offline I suspect you got 50855936 as an answer? This is 00 00 08 03 in importance byte order, "big-endian".
The x86 architecture is little oriented; most other architectures are big-endian. Most likely, your data file was either saved on a large machine or was explicitly saved in big-endian format, since this is the standard byte order for the "Internet".
To convert from big-endian to little-endian, you just need to switch the order of four bytes. The easiest way to do this is the IPAddress.NetworkToHostOrder method (the "network" order is big-endian, the "host" order for x86 is the reverse byte order.)
source share