Hello everybody.
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...
Let's say I have 3 ip's...they log on 1 ip but they are sent on 3 ips (this would mean turning ip into an array (string[] ip)
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)
I doubt this would work so I am asking if there is such thing in Conquer PServers to distribute the traffic to different IPs.
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;
}