Hi guys! I am trying to instantiate a vanilla install of FiveM on 16 Ubuntu Server (VPS). I have followed the FiveM guide to a T. In the config File I have added my IP:Port (using default) to the server.cfg. I made sure that traffic flow on the default port is open for both tcp and udp packets using iptables.
Here is where it gets odd. When I have the lines as follows:
endpoint_add_tcp “158.69.123.85:30120”
endpoint_add_udp “158.69.123.85:30120”
Nothing appears in the server browser in my client.
If I change ONE of the ports:
endpoint_add_tcp “158.69.123.85:30110”
endpoint_add_udp “158.69.123.85:30120”
I CAN see the server on the server browser, but when I connect to it I get a connection error:
Failed handshake to server 158.69.123.85:30120 - Failed to connect to 158.69.123.85 port 30120: Connection refused - CURL error code 7 (Couldn’t connect to server).
when I use nmap to see if I am listen on ports in scenario A, here is what I receive:
Nmap scan report for ns524962.ip-158-69-123.net (158.69.123.85)
Host is up.
PORT STATE SERVICE
30120/tcp filtered unknown
30120/udp open|filtered unknown
Scenario B:
Host is up (0.000068s latency).
PORT STATE SERVICE
30110/tcp filtered unknown
30110/udp closed unknownHost is up (0.00012s latency).
PORT STATE SERVICE
30120/tcp closed unknown
30120/udp open|filtered unknown
If the server (with both ports pointing to 30120) is online and I use a remote port tester tool, it responds as ‘port is closed’.
If I shut the server down and use
ncat -l 30120
which starts listening on the port, the tool says it is open. Thus I am leaning to say the port is open but not listening when the game server is started.
Does anyone have any clue what can be causing this? Again, this is vanilla installation using the most recent (March) Artifact on a totally fresh linux install with ports open via IP tables (I also tried ufw as a redundancy at one point too)