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.
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.
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
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)
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?
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.
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.
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;
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.
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...
[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...