AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   RCON on Linux DoD:S (https://forums.alliedmods.net/showthread.php?t=120150)

Lebson506th 03-01-2010 08:37

RCON on Linux DoD:S
 
Hey guys,

I'm trying to help a friend of mine set up an Ubuntu Linux SRCDS server for DoD:S.

Everything runs fine, we can join the server and everything, but RCON cannot connect!

Every time we try, whether it be from within the game using console or using a program like HLSW, we get the "Unable to connect to remote server (xx.xx.xx.xx:27015)" error.

We've opened the ports (27015 TCP/UDP and 27020 UDP) both using iptables and through his router, but it was no help.


This is the command line he is trying to use:
Code:

./srcds_run -console -game dod +map dod_donner -maxplayers 16 -autoupdate

I found somewhere online that it might because he didn't define the IP/Port on the command line, so I told him to try that.

He tried every combination of +/-ip and +/- port, but nothing helped.

Whenever there was a +ip or -ip on the command line, he got this error:

"Cannot assign requested address. Couldn't allocate any server IP port"


Anyone have any ideas?

psychonic 03-02-2010 08:52

Re: RCON on Linux DoD:S
 
Make sure you're adding the ip that srcds is to actually bind to (which isn't necessarily the external ip).

Lebson506th 03-02-2010 09:10

Re: RCON on Linux DoD:S
 
We used the IP that we use when connecting to the server.

I'm not on a LAN with him and I used this IP to add the server to HLSW and I could see it fine.

Also, it's not a dedicated server or anything so it only has 1 IP as far as i know.

psychonic 03-02-2010 09:22

Re: RCON on Linux DoD:S
 
Quote:

Originally Posted by Lebson506th (Post 1105316)
We used the IP that we use when connecting to the server.

I'm not on a LAN with him and I used this IP to add the server to HLSW and I could see it fine.

Also, it's not a dedicated server or anything so it only has 1 IP as far as i know.

If the server is behind NAT, it cannot bind to the external ip even though you can connect to it via the external ip when the port is forwarded. It can only bind to an ip available on that box.

Lebson506th 03-02-2010 10:41

Re: RCON on Linux DoD:S
 
It's just a personal computer hosted by a guy at his home in Denmark.

How would I go about making sure i'm using the right IP?

omgitsme 03-02-2010 10:45

Re: RCON on Linux DoD:S
 
i had the same problem. i just posted this in another thread. my port's look like:
TCP1200 - 12001200 - 1200-- http://88.119.172.46/images/spacer.gif
http://88.119.172.46/images/spacer.gif
UDP1200 - 12001200 - 1200-- http://88.119.172.46/images/spacer.gif
http://88.119.172.46/images/spacer.gif
TCP27000 - 2701527000 - 27015-- http://88.119.172.46/images/spacer.gif
http://88.119.172.46/images/spacer.gif
UDP27000 - 2701527000 - 27015-- http://88.119.172.46/images/spacer.gif
http://88.119.172.46/images/spacer.gif
TCP27020 - 2703927020 - 27039-- http://88.119.172.46/images/spacer.gif
http://88.119.172.46/images/spacer.gif
UDP27020 - 2703927020 - 27039 and no problems. before i had the rcon fail

psychonic 03-02-2010 10:56

Re: RCON on Linux DoD:S
 
Quote:

Originally Posted by Lebson506th (Post 1105406)
It's just a personal computer hosted by a guy at his home in Denmark.

How would I go about making sure i'm using the right IP?

My guess is that it is behind a router that uses NAT as that would explain almost all of this. Have him use the internal network ip (the lan address) with the -ip switch. You will still be able to connect fine from the external ip.

Lebson506th 03-02-2010 16:07

Re: RCON on Linux DoD:S
 
That did it.

Thanks a lot!

valentin1000 03-07-2013 21:30

Re: RCON on Linux DoD:S
 
Quote:

Originally Posted by omgitsme (Post 1105409)
i had the same problem. i just posted this in another thread. my port's look like:
TCP1200 - 12001200 - 1200-- http://88.119.172.46/images/spacer.gif
http://88.119.172.46/images/spacer.gif
UDP1200 - 12001200 - 1200-- http://88.119.172.46/images/spacer.gif
http://88.119.172.46/images/spacer.gif
TCP27000 - 2701527000 - 27015-- http://88.119.172.46/images/spacer.gif
http://88.119.172.46/images/spacer.gif
UDP27000 - 2701527000 - 27015-- http://88.119.172.46/images/spacer.gif
http://88.119.172.46/images/spacer.gif
TCP27020 - 2703927020 - 27039-- http://88.119.172.46/images/spacer.gif
http://88.119.172.46/images/spacer.gif
UDP27020 - 2703927020 - 27039 and no problems. before i had the rcon fail

Actually this was the solution for me.
Thank you so much.


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

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