Raised This Month: $ Target: $400
 0% 

Looking for guru! I got TCP connection problem.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
B3N4K
Senior Member
Join Date: Jun 2008
Location: Czech Republic
Old 05-04-2012 , 16:14   Looking for guru! I got TCP connection problem.
Reply With Quote #1

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

Last edited by B3N4K; 05-04-2012 at 16:16.
B3N4K is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode