Yo everyone,
I spent last 2 hours googling and i just can't figure this out.
I have code in C# that should connect via sockets to my hlds server and then communicate with server thru HLDS RCON protocol.
C# code if fine cuz it works for (some) other servers.
Code:
Socket s = null;
int port = 27019;
string ip = "80.78.x.x";
s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
s.Connect(ip, port);
But for mine server it doesn't work. It says that connection was actively refused. So i can't even estabilish TCP connection to my server.
But server is set up properly. Its running almost year w/o any problem, i can control it with HLSW etc.
Steam server. Firewall set up properly (accept both TCP and UDP ports). The problem is in HLDS i am 100% sure. There must be some hidden settings that makes this block such TCP connection. I checked everything. I even tracked (logged) packets if they get thru firewall to HLDS so its hlds who refuse them.
Does anyone have any suggestion?
Thanks for any help