Can't connect to myself

09/06/2008 21:34 andyd123#16
Quote:
Originally Posted by SnapCrakllPop View Post
I would be using account Admin with pass 0 (zero).
Open General.cs and search for
Code:
byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
                                	TheClient.Crypto.Encrypt(ref Pack);
                                	Sock.Send(Pack);
replace it with

Code:
if(ThisAcc == "Admin")
                            	{
                            		ServerIP = "127.0.0.1";
                            		byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
                                	TheClient.Crypto.Encrypt(ref Pack);
                                	Sock.Send(Pack);
                            	}
                            	else
                            	{
                                byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
                                TheClient.Crypto.Encrypt(ref Pack);
                                Sock.Send(Pack);
                            	}

So that section should read

Code:
try
                            {
                            	if(ThisAcc == "Admin")
                            	{
                            		ServerIP = "127.0.0.1";
                            		byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
                                	TheClient.Crypto.Encrypt(ref Pack);
                                	Sock.Send(Pack);
                            	}
                            	else
                            	{
                                byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
                                TheClient.Crypto.Encrypt(ref Pack);
                                Sock.Send(Pack);
                            	}
                            }
                            catch { }
Let me know how that works.
09/07/2008 12:55 vortexsoul#17
Quote:
Originally Posted by andyd123 View Post
Open General.cs and search for
Code:
byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
                                	TheClient.Crypto.Encrypt(ref Pack);
                                	Sock.Send(Pack);
replace it with

Code:
if(ThisAcc == "Admin")
                            	{
             ServerIP = "127.0.0.1"      <--Should be ServerIP = "127.0.0.1";
                            		byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
                                	TheClient.Crypto.Encrypt(ref Pack);
                                	Sock.Send(Pack);
                            	}
                            	else
                            	{
                                byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
                                TheClient.Crypto.Encrypt(ref Pack);
                                Sock.Send(Pack);
                            	}

So that section should read

Code:
try
                            {
                            	if(ThisAcc == "Admin")
                            	{
             	ServerIP = "127.0.0.1"      <--Should be ServerIP = "127.0.0.1";
                            		byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
                                	TheClient.Crypto.Encrypt(ref Pack);
                                	Sock.Send(Pack);
                            	}
                            	else
                            	{
                                byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
                                TheClient.Crypto.Encrypt(ref Pack);
                                Sock.Send(Pack);
                            	}
                            }
                            catch { }
Let me know how that works.
When i played with this code you wrote.
when i re-used for myself xD it did help but by the "127.0.0.1" a ; was needed or the rebuild faild thought u should know.
Just Tryin 2 Help ^_^
09/09/2008 03:18 GeneralMcLean#18
Oh yeah! it worked! =D

Thanks alot!