nTraum / rubycon

CLI for managing Source dedicated game servers. HLSW for the console, so to say.
22 stars 1 forks source link

Connection refused when trying to enter console #8

Closed nTraum closed 11 years ago

nTraum commented 11 years ago

by Oook

I can do this:

rubycon list
Server                     Map     Players      Ping
ooks        private_beach_v2        0/16        13

Which tells me that the server "ooks" is configured correctly - it pings it and gets current map and player count. Therefore the ip is correct, the port is correct, and it is finding the server. Yet if I:

rubycon console ooks
Use CTRL+D to exit.
Connection refused. Wrong host?

idk why. The rcon password is correct, not really sure what else to do with this.

nTraum commented 11 years ago

Hey Ook, if you read this, please provide answers to the following questions.

goosmurf commented 11 years ago

I saw this on the HLDS list. RCON uses TCP whereas the game queries use UDP.

You don't have a firewall blocking TCP do you?

Oook commented 11 years ago

Hi, guys!

So I played with this a bit. The first time I setup my server, I didn't use --port, but I included port with ip, like this:

rubycon add --address=10.0.0.25:27100 --rcon=zzz

This created the following entry in rubycon.yml:

Interesting enough, it can use this to ping the server and get map and player information. So I created a second entry, and this time I did this:

rubycon add ooks1 --address=10.0.0.25 --port=27100 --rcon=***

And it created this in rubycon.yml:

This time it has the correct port

rubycon list Server Map Players Ping ooks ook_tomb20 0/16 11 ooks1 ook_tomb20 0/16 11

Thinking that this time I got it right, I tried to bring up the console for ooks1, which as you see has the correct address/port:

rubycon console ooks1

Alas, I still get this:

rubycon console ooks1 Use CTRL+D to exit. Connection refused. Wrong host? error: exit

I'm running Opposing Force server on a Windows 7 box, firewall turned off. I can use hlsw to access the server, and I've verified that the rcon password is correct.

So, issues:

1) If the port or address is incorrect, you get "error: undefined method `+' for nil:NilClass". It should give a message about not being able to connect to server. It doesn't always do this. 2) If the port setting in rubycon.yml is incorrect but the ip includes the port -> ip:port <- it still pings the server. Should it? For consistency purposes, you should probably strip the port from the ip address and force it to use the port specified in the port parameter, but that is up to you. 3) And of course, with correct address/port/rcon password, it won't connect via console mode.

The server is open to the public and can be found at 98.177.133.132:27100. If my ip changes (I have non-static ip, but it does not change often) you can use ooksserver.no-ip.info:27100.

Oh, and to make things more interesting, there seems to be a bit of a disconnect between settings in rubycon.yml and what it actually uses. If I have this in rubycon.yml:

cat rubycon.yml

and I do rubycon list:

rubycon list Server Map Players Ping ooks1 private_beach_v2 0/16 5 ooks2 private_beach_v2 0/16 11 ooks3 ? ?/? ?

Ooks1 should not resolve - the address and port are both wrong, yet it still pings it. Ooks2 has valid settings, and pings as expected Ooks3 has identical settings to Ooks2, but as you see it does not ping

Please let me know if there is anything I can do to help out here.

nTraum commented 11 years ago

Thanks for your extensive research @Oook, that helps a lot! Unfortunately, I won't have time to work on this until next week, but I'll fix this as soon as possible.

nTraum commented 11 years ago

By the way, the reason why ruybcon console still crashes for your server is because Opposing Force doesn't seem to be a Source Game (is this correct?). The RCON implementation of GoldSrc engine games (e.g. Opposing Force, Counterstrike 1.6) and Source engine games (e.g. TF2, Counter Strike: Source) differ from each other and rubycon currently only supports Source engine games. No worries, I wanted to implement GoldSrc support anyway, so it's in the pipe already.

Oook commented 11 years ago

Oh, yeah, OP4 is definitely not a Source Game! OP4 is an HL1 game, like TFC and CS1 and H L1. I didn't know it was considered GoldSrc, as it predates anything-Source. It is one of the oldest mods out there, I've been running this server for over ten years. But it used the HL1 engine (hlds)

koraktor commented 11 years ago

@nTraum Steam Condenser also supports RCON for GoldSrc servers, so you might want to add support for those, too.

nTraum commented 11 years ago

I wanted to implement GoldSrc support anyway, so it's in the pipe already.

Already on my to do list. :)

Cheers