When I send the auth response packet then the client is disconnecting.
What could be the prolem causing it?
My packet structure is:
DataType Data Offset (fixed value)
Code:
uint16 Size 0 (32)
uint16 Type 2 (0x41f)
uint32 LoginUID 4
uint32 LoginKey 8
string IP 12
uint32 Port 28
Test:
Code:
PacketStructures.AuthResponsePacket resp = new PacketStructures.AuthResponsePacket();
resp.LoginUID = 1000000;
resp.LoginKey = Enums.AuthResponseKey.LOGIN_SUCCESS;
resp.IP = "5.222.56.63";
resp.Port = 5816;
Client.Send(resp);
I am encrypting the packet and the crypto cannot be wrong as I can decrypt the packets and my crypto is taken straight out from my 4267 source.
Code:
public void Send(ConquerOnline.Network.ConquerPacket Packet)
{
Packet.Encrypt(this.Crypto);
networkClient.Send(Packet);
}
I've also tried with other cryptographers, including the one in LOTF and it did not work either.
And as you can see my gameserver is setup to that IP and port as well.
Code:
Server server = new Server("5.222.56.63", 5816);
server.BeginServer();
server.AcceptConnections();
Tho it never connects...
So I'm pretty lost at what the problem is.
Any help is appreciated.