[5017]Auth Response Problem

07/21/2012 16:01 I don't have a username#1
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.
07/21/2012 16:55 Zeroxelli#2
Maybe I'm remembering a newer patch, but didn't port come before IP after 50XX?
07/21/2012 17:22 I don't have a username#3
Quote:
Originally Posted by Zeroxelli View Post
Maybe I'm remembering a newer patch, but didn't port come before IP after 50XX?
Nope. The structure is correct, checked it up in other sources and even back in 4267 the port was still after.
07/21/2012 22:50 Zeroxelli#4
Strange.. and the token is correct?
07/21/2012 22:58 I don't have a username#5
Quote:
Originally Posted by Zeroxelli View Post
Strange.. and the token is correct?
It can be any value, so yes.