Raised This Month: $ Target: $400
 0% 

Looking for guru! I got TCP connection problem.


Post New Thread Reply   
 
Thread Tools Display Modes
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
'-_-'<3zok<3'-_-'
Senior Member
Join Date: Feb 2010
Location: Norway
Old 05-05-2012 , 17:33   Re: Looking for guru! I got TCP connection problem.
Reply With Quote #2

Enable sockets? lawl
'-_-'<3zok<3'-_-' is offline
Send a message via Skype™ to '-_-'<3zok<3'-_-'
B3N4K
Senior Member
Join Date: Jun 2008
Location: Czech Republic
Old 05-06-2012 , 05:45   Re: Looking for guru! I got TCP connection problem.
Reply With Quote #3

Thats why i have "Looking for guru" in headings ;) But thanks for trying

(Sockets are AMXX feature but i am talking about HLDS Source Query Protocol which is core HLDS feature)
B3N4K is offline
Reply



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 05:32.


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