Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 04:54

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] 2 Login IPs for the same GameServer [5165]

Discussion on [Help] 2 Login IPs for the same GameServer [5165] within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2009
Posts: 16
Received Thanks: 0
[Help] 2 Login IPs for the same GameServer [5165]

Hello guys i make a server non-hamachi & people login with my internet ip adress so when i try to login i cant because i cant login to my self so i tried to make a second ip adress which is the hamachi one as i am going to login alone, the problem now that i made the coding for the second ip but it doesnt work the client says "Failed To Login To Game Server" here is the coding so please any one that can fix it release the fix and thank you for reading my post.

First open AuthWorker & search for
Code:
        static string GameIP;
Under that i wrote
Code:
        static.string HamachiIP;
Then search for
Code:
        public static void StartServer(string GameIP)
        {
            AuthWorker.GameIP = GameIP;
            try
            {
                Listener = new Connection();
                Listener.SetConnHandler(new ConnectionArrived(ConnectionHandler));
                Listener.SetDataHandler(new DataArrived(DataHandler));
                Listener.SetDCHandler(new Disconnection(DCHandler));
                Listener.Listen(9958);
            }
            catch (Exception Exc) { Program.WriteLine(Exc); }
        }
Under that i wrote
Code:
        public static void StartServer2(string LocalHost)
        {
            AuthWorker.LocalHost = GameIP;
            try
            {
                Listener = new Connection();
                Listener.SetConnHandler(new ConnectionArrived(ConnectionHandler));
                Listener.SetDataHandler(new DataArrived(DataHandler));
                Listener.SetDCHandler(new Disconnection(DCHandler));
                Listener.Listen(9959);
            }
            catch (Exception Exc) { Program.WriteLine(Exc); }
        }
Then search for
Code:
                            AC.Send(Packets.SendAuthentication(GameIP, IV));
And after that i wrote
Code:
                            AC.Send(Packets.SendAuthentication(LocalHost, IV));
now i am done in the AuthWorker

Now open GameWorker & search for
Code:
        public static void StartServer()
        {
            try
            {
                Listener = new Connection();
                Listener.SetConnHandler(new ConnectionArrived(ConnectionHandler));
                Listener.SetDataHandler(new DataArrived(DataHandler));
                Listener.SetDCHandler(new Disconnection(DCHandler));
                Listener.Listen(5816);
            }
            catch (Exception Exc) { Program.WriteLine(Exc); }
        }
Under that i wrote
Code:
        public static void StartServer2()
        {
            try
            {
                Listener = new Connection();
                Listener.SetConnHandler(new ConnectionArrived(ConnectionHandler));
                Listener.SetDataHandler(new DataArrived(DataHandler));
                Listener.SetDCHandler(new Disconnection(DCHandler));
                Listener.Listen(5817);
            }
            catch (Exception Exc) { Program.WriteLine(Exc); }
        }
And now we are also done in the GameWorker, Now go to Program.cs & Search for
Code:
                NewestCOServer.Main.AuthWorker.StartServer(I.ReadString("Database", "GameServerIP"));
Under that i wrote
Code:
                NewestCOServer.Main.AuthWorker.StartServer2(I.ReadString("Database", "GameServerIP2"));
And i wrote
Code:
                NewestCOServer.Main.GameWorker.StartServer2();
Now i was done then i openned OldCoDB then Config.ini and wrote under the "GameServerIP = My Internet IP" i wrote
"GameServerIP2 = My Hamachi IP"

now i was done in everything then i openned the server.dat and put my hamachi ip then i tried to login then the error appeared so if any one that can fix this problem plz post it and thank you xD
kingofdrift is offline  
Old 06/18/2011, 10:03   #2
 
elite*gold: 0
Join Date: May 2011
Posts: 168
Received Thanks: 33
127.0.0.1
zTek is offline  
Old 06/19/2011, 00:51   #3
 
elite*gold: 0
Join Date: Aug 2009
Posts: 16
Received Thanks: 0
i tried the 127.0.0.1 it doesnt work
kingofdrift is offline  
Old 06/20/2011, 06:17   #4
 
Sion~'s Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 181
Received Thanks: 68
This problem could be solved at the core, but if it's your wish to do it this way you can easily connect by simply calling the IPAddress.Any field, it's read only and provides an ip address that listens for client activity on all network interfaces. Provided that your method is listening on the official Authentication port (9959).. you're client should be connecting to your localhost at that port.

For other's to connect your external ip address, and your specified Authentication port(9958), is required.

Does you're client connect to the server at all? Breakpoint it out and let me know.
I state again.. this isn't the correct way to do this, but will it work. Yes.
Sion~ is offline  
Reply


Similar Threads Similar Threads
[HELP]Connection BTW Login And GameServer
04/04/2011 - SRO Coding Corner - 6 Replies
hello ok so like you know from my past post i fix with kevin help the packet error thank your kevin ;) but now after i changed part of importent gameserver and full loginserver packet i try to login the game loginserver start and i get the silkroad client to work now when i enter id and pw nothing happan no error's in console can somebody explain me what packet make this problem?:)
Login GameServer Fail
12/28/2008 - Lineage 2 - 5 Replies
eL2Walker version 10.9.3 16:20:39 »¶Ó*ĘąÓĂĐĐŐߡ&# 321; 16:20:39 Link LoginServer Succeed. 16:20:43 Login LoginServer Success. 16:20:43 上次登录服务&# 22120; 16:20:43 服务器当前在&# 32447;率:49.73%,能否登& 470;:能 16:20:45 Link GameServer Succeed. 16:20:45 ->Login GameServer Fail.
Help Login GameServer Fail!!
04/20/2008 - Lineage 2 - 7 Replies
I am playing on Good Vs. Evil (private server) .: Good vs Evil :. I am using OOG 10.9.0 w/ xzCrk VPNBOT crack running and it has worked for a while now. Last night, worked beautifully, this morning, this: 13:44:44 »¶Ó*ʹÓÃÐÐÕß¡£ 13:44:44 Link LoginServer Succeed. 13:44:48 Login LoginServer Success. 13:44:48 服务器当前在&# 32447;率:81.71%,能否登& 470;:能 13:44:50 Link GameServer Succeed. 13:44:50 ->Login GameServer Fail. I can not ping the ip address either. I did check, I am not banned, but I did have a...
Login GameServer Fail.
04/19/2008 - Lineage 2 - 2 Replies
19:29:18 Link LoginServer Succeed. 19:29:24 Login LoginServer Succeed. 19:29:28 Link GameServer Succeed. 19:29:29 ->Login GameServer Fail. how can ifix it pls ? i followed all of the instructions in the pinned topics.
Login Gameserver Fail!
05/10/2005 - Lineage 2 - 11 Replies
Hi also ich find im forum nix bzw. den fehler ja aber keine antwort drauf! Ich habe noch nie auf den normalen servern gezoggt. nur das game installiert, ini vom privat rein und go! Bei mir kommt immer folgender fehler: 20:18:12 Link LoginServer Succeed. 20:18:17 Login LoginServer Succeed. 20:18:17 6 ServerFail. 20:18:17 ->Login LoginServer Fail.



All times are GMT +1. The time now is 04:55.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.