[HELP] Letting others play my server, wierd problem

06/07/2009 03:42 quadruple1#1
okay.
Here is a section of my packerprocessor.cs
Code:
  {
                        /*if(AuthSocket.Authorize(AccountName, Key, false))
                        {
                            CSocket.Send(Packets.AuthResponse("5.8.242.230", 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("127.0.0.1", Key1, Key2));
				        }
				        else
				        {
				        	CSocket.Disconnect();
				        }
			        }
	        	}
	        	else if(DBPass == "")
	        	{
Now take a look at this part of it
Code:
				        	CSocket.Send(Packets.AuthResponse("127.0.0.1", Key1, Key2));
				        }
				        else
				        {
				        	CSocket.Disconnect();
				        }
			        }
			        else if(ServerName == "CoEmu.Nano")
			        {
When i change the IP there to 5.8.242.230, it will let everybody play my server. BUT it wont let me login, it will let everyone else login my server and not me.
When i leave it at 127.0.0.1 it will let me play my server but wont let anyone else login.

Anyone know a solution to letting me AND other people play my server?

Yes i have changed ips back and forth with the other two sections and it still wont work
06/07/2009 15:15 editor05#2
try to change the server.dat ip to your ip address
06/07/2009 16:47 quadruple1#3
My server.dat ip is 127.0.0.1
the other peoples ip is 5.8.242.230.
If i change my ip to 5.8.242.230 then it will say my server.dat is damaged.
06/07/2009 16:57 Andrew.A#4
Wow i didnt know other people could get on like that? Whats IP is in your Server.dat?
06/07/2009 16:58 quadruple1#5
Quote:
Originally Posted by Andrew.A View Post
Wow i didnt know other people could get on like that? Whats IP is in your Server.dat?
127.0.0.1
06/07/2009 17:29 Andrew.A#6
and in the client you sent them the server.dat ip is Yours or 127.0.0.1???
06/08/2009 00:42 quadruple1#7
the ip in my server.dat is 127.0.0.1

While the ip in the server.dat of the other people is 5.8.242.230(hamachi IP)
06/08/2009 02:47 EatMyChidori#8
Quote:
Originally Posted by quadruple1 View Post
the ip in my server.dat is 127.0.0.1

While the ip in the server.dat of the other people is 5.8.242.230(hamachi IP)
hamachi doesnt work with this source
06/08/2009 08:07 dodolinobobo#9
Quote:
Originally Posted by EatMyChidori View Post
hamachi doesnt work with this source
shut up,i use hamachi and work and i have no lag
06/08/2009 09:34 editor05#10
Andrew... have you tried changing the ip on the server.dat on the other computer? the one where the server is NOT hosted... is it working?
06/08/2009 13:30 Andrew.A#11
Well my idea is in PacketProcessor you have
Code:
 {
                        /*if(AuthSocket.Authorize(AccountName, Key, false))
                        {
                            CSocket.Send(Packets.AuthResponse("5.8.242.230", 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("127.0.0.1", Key1, Key2));
				        }
				        else
				        {
				        	CSocket.Disconnect();
				        }
			        }
	        	}
	        	else if(DBPass == "")
	        	{
etc and below you have the same so in 1 put ur ip and the other 127.0.0.1?

Please try this I am unsure but its wort ha try =X
06/09/2009 02:40 EatMyChidori#12
Quote:
Originally Posted by dodolinobobo View Post
shut up,i use hamachi and work and i have no lag
dont blame me got the info from hunterman
06/09/2009 18:14 editor05#13
look at the red one... change it in your PacketProcessor

Quote:
Originally Posted by
{
/*if(AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("5.8.242.230", Key1, Key2));
}
else
{
CSocket.Disconnect();
}*/
if (AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("5.8.242.230[COLOR="Red"
[/COLOR]", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
else if(ServerName == "CoEmu.Nano")
{
if(AuthSocket.Authorize(AccountName, Key, true))
{
CSocket.Send(Packets.AuthResponse("127.0.0.1", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
}
else if(DBPass == "")
{