I forget which patch the auth response packet changed in (fairly sure it was before 5290 but just asking). Are you trying to run current patch? Or some new but pre current one? The current auth response packet from my old source is...
Code:
public static byte[] AuthResponse(string Ip, uint UID, uint key, ushort Port)
{
byte[] Packet = new byte[52];
WriteUInt16(52,0, Packet);
WriteUInt16(1055, 2, Packet);
WriteUInt32(UID, 4, Packet);
WriteUInt32(key, 8, Packet);
WriteUInt32(Port, 12, Packet);
WriteUInt16(42508, 16, Packet);
WriteUInt16(67, 18, Packet);
WriteString(Ip, 20, Packet);
return Packet;
}
Sadly the parts aren't well labeled but it's working just fine using the following inputs.
Ip = game ip (obviously)
uid = Client uid
key = auth response type (2 for valid login)
port = game port.
if it's then failing to connect to game server chances are you're using the wrong port for the game server listener (keep in mind that using loader can force the port settings... so make sure they match up ^^)