Have you put the apostrophe inbetween the "" because that will error you?Quote:
yeah, all my infos are correct..
Is trisky you? because you should be logging into CoEmuLocQuote:
k problem :D
first server setup ftl :(Code:[LoginServer] trisky logging in to CoEmu System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it ***.***.***.105:5817 at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port) at System.Net.Sockets.Socket.Connect(String host, Int32 port) at CoEmu_v2_LoginServer.Connections.AuthSocket.Authorize(String user, UInt32 key, Boolean nano)
If you are admin you should be logging in from 127.0.0.1Quote:
i get this
trisky is my tester. All ports are forwarded. Is the Loc necessary? I just left the name as it was.Quote:
Is trisky you? because you should be logging into CoEmuLoc
also is port 5817 forwarded because it need to be.
The Loc just means Local as in for the person running the server to log in from.Quote:
trisky is my tester. All ports are forwarded. Is the Loc necessary? I just left the name as it was.
Ill help you out on teamviewer just give me a PM when your onlineQuote:
yeah, all my infos are correct..
When I say same name, I mean I just left it as it was in the code to begin with, which is "CoEmu" and "CoEmu.Nano" the places where you have loc would be at the 2 instances of CoEmu.Nano which are local and are pointed at 127.0.0.1Quote:
The Loc just means Local as in for the person running the server to log in from.
You can't have the same name so Trisky should be logging in from CoEmuLoc as he is your tester and should be under ip 127.0.0.1 not your ip.
Again are you sure port 5817 is forwarded because it is denying access.Quote:
When I say same name, I mean I just left it as it was in the code to begin with, which is "CoEmu" and "CoEmu.Nano" the places where you have loc would be at the 2 instances of CoEmu.Nano which are local and are pointed at 127.0.0.1
By tester I meant someone from a different network that's trying to connect to my server. That is where the instances of CoEmu are and they are pointed at my ip.
if(ServerName == "CoEmu")
{
/*if(AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("66.187.101.86", Key1, Key2));
}
else
{
CSocket.Disconnect();
}*/
if (AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("127.0.0.1", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
else if(ServerName == "CoEmu.Nano")
{
if(AuthSocket.Authorize(AccountName, Key, true))
{
CSocket.Send(Packets.AuthResponse("MY WAN IP", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
}
else if(DBPass == "")
{
Console.WriteLine("[LoginServer](Diagnostic) Set password for " + AccountName);
Database.Database.SetPass(AccountName, Password);
//OKAY to login!
uint Key = (uint)(Random.Next(10000000) << 32);
Key = Key << 32;
Key = (uint)(Key | (uint)Random.Next(10000000));
byte[] Key1 = new byte[4];
byte[] Key2 = new byte[4];
Key1[0] = (byte)(((ulong)Key & 0xff00000000000000L) >> 56);
Key1[1] = (byte)((Key & 0xff000000000000) >> 48);
Key1[2] = (byte)((Key & 0xff0000000000) >> 40);
Key1[3] = (byte)((Key & 0xff00000000) >> 32);
Key2[0] = (byte)((Key & 0xff000000) >> 24);
Key2[1] = (byte)((Key & 0xff0000) >> 16);
Key2[2] = (byte)((Key & 0xff00) >> 8);
Key2[3] = (byte)(Key & 0xff);
if(ServerName == "CoEmu")
{
/*if(AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("66.187.101.86", Key1, Key2));
}
else
{
CSocket.Disconnect();
}*/
if(AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("127.0.0.1", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
else if(ServerName == "CoEmu.Nano")
{
if(AuthSocket.Authorize(AccountName, Key, true))
{
CSocket.Send(Packets.AuthResponse("MY WAN IP", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
}
else
{
CSocket.Send(Packets.WrongPass());
CSocket.Disconnect();
}
}
else
{
Console.WriteLine("DBPass equals ERROR: " + DBPass);
CSocket.Disconnect();
}
}
}
}
I'm running it on 2 different computers. one is 32x and one is 64x. The 32x is the one one that is actively refusing the connection and the 64x is the one that times out.Quote:
Well thats probably the problem, apparently you cant ru nthis on 64x but ill take a look anyway.
I checked out teamviewer, but I have a major paranoia problem when it comes to remote desktop connections. I will host the lot of my project files, and all of my configuration files, on my server and PM you the address to it if that works but I won't use teamview.Quote:
Well get teamviewer then so i can check it out
What did you do? I've got the same problem as you, lolQuote:
I narrowed it down to being exclusively in the GameServer. The connection is passing through LoginServer fine but then times out while connecting with GameServer.
edit: sorry for double post
Double edit: NVM, I got it working... finally :\ the sections for the IPs in your guide were reversed. All I did was switch around the public and local IPs in PacketProcessor. It didn't want to allow others to connect one way and wouldn't let me connect another, so I ended up switching that and a couple other things around and it finally worked >.<