Problems setting up a dedicated server

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
BrickGrass
Engineer
Engineer
Posts: 1
Joined: 12 Aug 2021 15:12

Problems setting up a dedicated server

Post by BrickGrass »

Hi!

I wanted to set up a dedicated openttd server, and since I already have a debian webserver with space I thought I'd just use it. I had no problems installing openttd, but having opened ports 3979 and 3978 to tcp+udp traffic using ufw, I'm still getting errors from the dedicated server saying that it can't deliver to or from those ports for server advertisement. I've been trying different things in the game config file to see if it's connecting to the wrong ip or something (still fails when I specify the external ip for the server that I know my domain uses successfully), and I'm pretty much at my wits end.

The full readout when I query ufw is as follows:

Code: Select all

Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW IN    Anywhere
20:21/tcp                  ALLOW IN    Anywhere
22/tcp (OpenSSH)           ALLOW IN    Anywhere
80/tcp                     ALLOW IN    Anywhere
443/tcp                    ALLOW IN    Anywhere
3979/tcp                   ALLOW IN    Anywhere
3979/udp                   ALLOW IN    Anywhere
3978/udp                   ALLOW IN    Anywhere
22/tcp (v6)                ALLOW IN    Anywhere (v6)
20:21/tcp (v6)             ALLOW IN    Anywhere (v6)
22/tcp (OpenSSH (v6))      ALLOW IN    Anywhere (v6)
80/tcp (v6)                ALLOW IN    Anywhere (v6)
443/tcp (v6)               ALLOW IN    Anywhere (v6)
3979/tcp (v6)              ALLOW IN    Anywhere (v6)
3979/udp (v6)              ALLOW IN    Anywhere (v6)
3978/udp (v6)              ALLOW IN    Anywhere (v6)
And here's what I think the full list of relevant config file settings I currently have are:

Code: Select all

[network]
server_port = 3979
server_advertise = true
server_password = <password I'm not sharing goes here>
server_name = <server name I'm not sharing goes here>

[server_bind_addresses]
<correct external ip address goes here> =
Any suggestions for what I should try next would be much appreciated! Getting very close to giving up and just running the thing locally, port forwarding and not sharing my local ip with internet friends be damned XD
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 25 guests