Register for your free account! | Forgot your password?

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

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

Advertisement



[REQUEST] CoEmu IP Setup

Discussion on [REQUEST] CoEmu IP Setup within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
ktamer's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 99
Received Thanks: 35
[REQUEST] CoEmu IP Setup

So here's my main problem right now. Been working on a source for a while and have a few hands that wanna' help me out. I figure they can run around my server noting things that need fixing or whatever. But for reason beyond me they can't connect to my server. Right now I'm using a Hamachi system. I changed the IP address in my GameServer and LoginServer MasterSocket.cs to my Hamachi Address. And the "Red" IP's in PacketProcessor.cs in LoginServer to my Hamachi IP. I can still connect with my server.dat IP 127.0.0.1. But no one else can connect with there server.dat IP at my hamachi IP, and we're all logged on the Hamachi network and my source is running. Their side says "Cannot Connect to Server". while on my GameServer.exe cprompt it says they were trying to log in, but the connection timed out. I've done a ton of different things including the lame "search" button. Any and all help muchly appreciated.
ktamer is offline  
Old 01/14/2010, 05:09   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Sounds like maybe the login server isn't forwarding the request to the game server properly? I've never been that handy with handling connections (as I generally just use what's in the source and pray it works lol)

Sounds like if the login server is recognizing the ip they are connecting with then the ip's should be forwarded properly there. I'd just check through the game server to ensure that the ip is correct on that side also.

Note: In login server, the name of the server is important! One should be for 127.0.0.1 and the other server should be the online one. Make sure the server.dat your friends are using is the correct server name and ip address. Just something to check though.
pro4never is offline  
Old 01/14/2010, 05:13   #3
 
spare2's Avatar
 
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
Quote:
Originally Posted by pro4never View Post
Sounds like maybe the login server isn't forwarding the request to the game server properly? I've never been that handy with handling connections (as I generally just use what's in the source and pray it works lol)

Sounds like if the login server is recognizing the ip they are connecting with then the ip's should be forwarded properly there. I'd just check through the game server to ensure that the ip is correct on that side also.

Note: In login server, the name of the server is important! One should be for 127.0.0.1 and the other server should be the online one. Make sure the server.dat your friends are using is the correct server name and ip address. Just something to check though.
He is saying he has no problem connecting to the server himself. It's just the other people on the Hamachi network that cannot connect to the server. If he can successfully login to server, it has nothing to do with the source.

I am not familiar with Hamachi, but I am betting it's not allowing connections through it, or they have the wrong IP/Server name
spare2 is offline  
Old 01/14/2010, 05:28   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Yah I know he can login, I was just stating that both ips should be used where it deals with server name and external ip should be used for all other ips (not website_ip! That should not be either 127.0.0.1 OR online ip. Connections coming from that ip will be ignored by the login server)
pro4never is offline  
Old 01/14/2010, 05:46   #5
 
ktamer's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 99
Received Thanks: 35
And both of you bring up good points. But to my knowledge if their on my same Hamachi network which I use to host my server, I should have no problems in terms of Port Forwarding. And if it were in my source, there would have to be a mix-up of IP's somehow...would the server name in the server.dat have anything to do with it?
ktamer is offline  
Old 01/14/2010, 06:05   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Ooh I never mentioned port forwarding lol.

yes, server names and ip in the source should be the problem.


*opens coemu for the first time in a while*

Login Server

Connections>AuthSocket.cs
ServerIp = hamachi ip
nano_ip = 127.0.0.1

Connections>MasterSocket.cs
Server_Ip = hamachi ip
Website_ip = something random such as 123.123.12.1

PacketProcessor.cs

there will be 4 if(ServerName == 's

2 will be for .nano (local, 127.0.0.1) and 2 for external (hamachi ip)

make sure they match up and the server name matches what is being used in server.dat

example



Scroll down some more and there should be a second, near identical section of code. Edit it in the same way.


Game server

Connections>MasterSocket.cs

Server_Ip = hamachi ip
Site_Ip = something random (123.123.12.1 for eg)


Debug both and run again. Should work now.

Hope that helps
P4N
pro4never is offline  
Old 01/14/2010, 06:35   #7
 
ktamer's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 99
Received Thanks: 35
So definitely made some progress
Still connection fail.

Changed my server names in source to CoEmu, and made that the server name in the server.dat. (for Compatability)

Then made the IPs as you suggested. I missed the AuthSocket.cs IP which I was hoping would've been it.

And tried once more to connect away from HOST computer. And failed again.

Then tried to connect on Host computer, now this is failing. So problem unfortunately not fixed, and another created. This is really a kick in the face... It was definitely progress when the other computer was stuck at logging in. so the problem must lie within the login server...somewhere



So I swapped the nano ip and server ip in authsocket.cs and was able to log back in on HOST computer...oddly enough randomly the guards are now deciding to kill me wherever I go lol. But on other computer it says he authenticated from loginserver then times out...i guess more playing around is needed.
ktamer is offline  
Old 01/14/2010, 06:54   #8
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
You could try removing the timeout completely (as hamachi tends to create lots of lag)

I don't remember exactly where the timeout is controlled but it should be under the login server, something to do with timeout. Search around and see if you can find it. Change it to a higher number and see if that solves the problem.
pro4never is offline  
Old 01/14/2010, 07:18   #9
 
ktamer's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 99
Received Thanks: 35
While lookin' for TimeOut, this was all I was capable of finding, but found nothing specifically related to a value for time that this timeout waits for. I might just have to call it a night for today. BTW I greatly appreciate your help, yet once again, P4N.



* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Timers;

namespace CoEmu_v2_GameServer.Connections
{
/// <summary>
/// Description of ConnectionRequest.
/// </summary>
public class ConnectionRequest
{
public ulong Key;
public string Account;
protected Timer Timeout;

public ConnectionRequest(uint ExpireTime, ulong _Key, string User)
{
Key = _Key;
Account = User;
if(!Nano.AuthenticatedLogins.ContainsKey(Key))
{
Nano.AuthenticatedLogins.Add(Key, this);
}
Console.WriteLine("["+Key+"] "+Account+" authenticated from LoginServer.");
Timeout = new Timer();
Timeout.Interval = ExpireTime;
Timeout.Elapsed += delegate { Expire(true); };
Timeout.Start();
}
public void Expire(bool TimedOut)
{
Timeout.Stop();
Timeout.Dispose();
if(TimedOut)
Console.WriteLine(Account + "'s connection timed out.");
if(Nano.AuthenticatedLogins.ContainsKey(Key))
{
Nano.AuthenticatedLogins.Remove(Key);
}
}
}
}
ktamer is offline  
Old 01/15/2010, 00:59   #10


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
You might want to try my guide:



The problem that i noticed with the Coemu socketserver is that it never checks to see if the ServerIP (which you define as your hamachi ip) is atually the ipaddress being used, all it does it use the first one in the list of available ip addresses (some of which are invalid eg. 0.0.0.0 in some cases).

The problem with this should be apparent, if the first ipaddress in the list isnt your hamachi ip then you wont be able to connect via hamachi, but you might be able to connect locally. The guide i have linked will allow you to connect via any ip.
Korvacs is offline  
Old 01/15/2010, 04:16   #11
 
ktamer's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 99
Received Thanks: 35
Thx Korvacs for that helpful information.

But I found something else that was quite interesting. via Hamachi i was unable to ping other the other computer from Host, but the other computer was able to ping Host computer. Makes no sense...
ktamer is offline  
Reply


Similar Threads Similar Threads
[Guide]CoEmu v2 Source Setup
03/09/2012 - CO2 PServer Guides & Releases - 245 Replies
ALRIGHT. I was bored and in the mood to help (rare...I know D=) First things first, you NEED a C# compiler. If you're the classic nooby, then go get Microsoft Visual C# 2008 Express Edition. Second, download the source located in this crazy topic: http://www.elitepvpers.com/forum/co2-pserver-discus sions-questions/254190-awesome-release-coemuv2-nan o-5095-source-code.html. Third - extract it with WinRAR (if you don't have it, get it here: WinRAR archiver, a powerful tool to process RAR...
[Guide] CoEmu Setup+LoginFix+Line30,31,34 Fix
03/09/2010 - CO2 PServer Guides & Releases - 17 Replies
Setting Up CoEmuV2 Download everything Here Download Client from Here Thanks andy123 and BrokeN^WinG Now let's start...
I need some one to setup a Coemu source for me please....
07/03/2009 - CO2 Private Server - 1 Replies
Add meh on msn if u wanna help [email protected] thanx<3 i just want some one to setup it on navicat or w/e :)



All times are GMT +2. The time now is 23:29.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.