Connection refused (SourceBans to SRCDS)

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
UVClay
New to forums
New to forums
Posts: 7
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Jul 01, 2011 9:43 pm

Connection refused (SourceBans to SRCDS)

Post by UVClay »

Have two VPS. Both have a fully open iptables config.

http://radio.teamsij.com/sb_debug_connection.php

The IP defined in the connection debug script is on my game server box and the script itself is hosted on my web server. I've tried everything to resolve this and I have no idea what to do next.
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Connection refused (SourceBans to SRCDS)

Post by Edge100x »

"Connection refused" generally means that the destination port is closed. Do you have it connecting to the correct port for TCP? The default is 27015, but if you're running your server on a different port, you'll need to adjust this.
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: Connection refused (SourceBans to SRCDS)

Post by .=QUACK=.Major.Pain »

Also add your gameserver ip to your remote mysql on your web hosting if you haven't already.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
UVClay
New to forums
New to forums
Posts: 7
Joined: Fri Jul 01, 2011 9:43 pm

Re: Connection refused (SourceBans to SRCDS)

Post by UVClay »

Edge100x wrote:"Connection refused" generally means that the destination port is closed. Do you have it connecting to the correct port for TCP? The default is 27015, but if you're running your server on a different port, you'll need to adjust this.

Code: Select all

root@absolut:~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination  

Code: Select all

root@stoli:~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination 
That's why this is so confusing.
.=QUACK=.Major.Pain wrote:Also add your gameserver ip to your remote mysql on your web hosting if you haven't already.
I have.
UVClay
New to forums
New to forums
Posts: 7
Joined: Fri Jul 01, 2011 9:43 pm

Re: Connection refused (SourceBans to SRCDS)

Post by UVClay »

Just reread my reply and forgot to mention that the server is running on 27015 like you had mentioned.

udp 0 0 66.150.164.33:26901 0.0.0.0:* 9655/srcds_linux
udp 0 0 66.150.164.33:27005 0.0.0.0:* 9655/srcds_linux
udp 0 0 66.150.164.33:27015 0.0.0.0:* 9655/srcds_linux
udp 0 0 66.150.164.33:27020 0.0.0.0:* 9655/srcds_linux

e:
With SourceBans you are supposed to define the default connection port, which is 27015. Even with the three other ports its using, there shouldn't be a connection issue given the fact that the iptables should be accepting every connection no matter what. I tried to test the port being open with telnet on my desktop and was getting connection refused as well.
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: Connection refused (SourceBans to SRCDS)

Post by .=QUACK=.Major.Pain »

Is the web server yours or are you renting a shared hosting account?
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Connection refused (SourceBans to SRCDS)

Post by Edge100x »

UVClay, rcon uses TCP, so you need to check for TCP listen sockets and not UDP. If the only sockets that are open are the ones you quoted, this is your problem.
UVClay
New to forums
New to forums
Posts: 7
Joined: Fri Jul 01, 2011 9:43 pm

Re: Connection refused (SourceBans to SRCDS)

Post by UVClay »

fixed
Post Reply