Reading this over I found the possible error.
Code:
if(ServerName == "[COLOR="Red"]CoEmu[/COLOR]")
{
/*if(AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("[COLOR="Red"]66.187.101.86[/COLOR]", Key1, Key2));
}
else
{
CSocket.Disconnect();
}*/
if(AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("[COLOR="Red"]66.187.101.86[/COLOR]", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
else if(ServerName == "[COLOR="Red"]CoEmu.Nano[/COLOR]")
{
if(AuthSocket.Authorize(AccountName, Key, true))
{
CSocket.Send(Packets.AuthResponse("[COLOR="Red"]70.190.77.101[/COLOR]", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
}
else
{
CSocket.Send(Packets.WrongPass());
CSocket.Disconnect();
}
}
else
{
Console.WriteLine("DBPass equals ERROR: " + DBPass);
CSocket.Disconnect();
}
}
}
}
It should be the name of your server in the server.dat
IP should be your hamachi ip.
Changing Comu.Nano doesn't matter but I always change it.