Recently I've been having some trouble with laggs, multiple connections etc, DDoS....
Somebody told me to distribute the server to run on more ip's at once (traffic balancing) so that the lagg could get diminuated.
However this thing could sound easy I find it impossible to add as it's in a packet...
Code:
public static COPacket SendAuthentication(string ip, byte[] IV)
{
byte[] Packet = new byte[32];
COPacket P = new COPacket(Packet);
P.WriteInt16((ushort)Packet.Length);
P.WriteInt16(0x41f);
P.WriteBytes(IV);
P.WriteString(ip);
P.Move(16 - ip.Length);
P.WriteInt16(5816);
return P;
}
Theoretically there should be a random to pick from 1 of the 3 ip's
This is how it would look (my stupid point of view)
Code:
[COLOR="DarkOrange"] public static COPacket SendAuthentication(string[] ip, byte[] IV)[/COLOR]
{
byte[] Packet = new byte[32];
COPacket P = new COPacket(Packet);
P.WriteInt16((ushort)Packet.Length);
P.WriteInt16(0x41f);
P.WriteBytes(IV);
[COLOR="DarkOrange"] Random Rnd = new Random();
int x = Rnd.Next(1,4);
P.WriteString(ip[x]);
P.Move(16 - ip[x].Length);[/COLOR]
P.WriteInt16(5816);
return P;
}






