• Source Engine master server registration/join
    4 replies, posted
Hello, I have been having trouble registering with the Source Engine master server. I have followed all the information displayed on Master Server Query Protocol and im getting the response 'Missing or bad challenge'. Any help would be appreciated. Console log: hastebin Sending code: hastebin If any other code snippets are needed let me know. Thanks in advance.
You are converting your challenge using big endian. Server queries use little endian. Server queries All types are little endian, which is the default on most languages on x86 CPUs
I have changed the code slightly, with no avail. According to all the docs i could find i should be converting it correctly, but the server still wont accept it. Updated code: hastebin
I just brought it up because I put your "master challenge" into https://www.scadacore.com/tools/programming-calculators/online-hex-converter/ and the challenge that you sent showed up big endian. Perhaps their or your network cards are converting it to "network byte order"? Or perhaps it's something completely different aha.
After changing from a Socket to send the information and receive to a UdpClient, it started working. The socket was altering the bits slightly so FF was becoming 3F, and this change fixed that.
Sorry, you need to Log In to post a reply to this thread.