Question Can't connect to dedicated server outside of LAN

Rulenine

Honorable
Mar 20, 2016
4
0
10,510
Hello,
I am having major issues with hosting a dedicated server for Ark Survival Evolved. I have it on a separate Linux machine running Debian 11. I've tried various methods of setup (direct on linux, AMPCubecoders, and currently LinuxGSM) and none work outside of LAN.
  • I have port forwarding set up for TCP/UDP on 7776-7778, 27015-27016, 27020, and 34197. Port forward settings identical to my Minecraft/Valheim servers I've set up previously on this same Linux server, so I know they work. Unifi dream machine is the router.
  • Firewall (UFW) has opened all ports above. Also attempted with firewall disabled.
Startup command lists the ports and uses 0.0.0.0 for public IP which should mean that it is available for outside connection

Code:
./ShooterGameServer Fjordur?AltSaveDirectoryName=Fjordur?listen?MultiHome=0.0.0.0?MaxPlayers=5?QueryPort=27015?RCONPort=27020?Port=7777 -automanagedmods -crossplay -PublicIPForEpic=0.0.0.0 -NoBattlEye

my output for ss -tuplwn | grep ShooterGameServ is:

Code:
arkserver@regierserver:~$ ss -tuplwn | grep ShooterGameServ

udp   UNCONN 0      0            0.0.0.0:27015      0.0.0.0:*    users:(("ShooterGameServ",pid=10583,fd=13))
udp   UNCONN 0      0            0.0.0.0:7777       0.0.0.0:*    users:(("ShooterGameServ",pid=10583,fd=30))
udp   UNCONN 0      0            0.0.0.0:7778       0.0.0.0:*    users:(("ShooterGameServ",pid=10583,fd=31))
tcp   LISTEN 0      16           0.0.0.0:27020      0.0.0.0:*    users:(("ShooterGameServ",pid=10583,fd=29))

My output for netstat -tulpen | grep -i shooter is:

Code:
root@regierserver:/home/arkserver# netstat -tulpen | grep -i shooter

tcp        0      0 0.0.0.0:27020           0.0.0.0:*               LISTEN      1002       74291      10583/./ShooterGame
udp        0      0 0.0.0.0:27015           0.0.0.0:*                           1002       75807      10583/./ShooterGame
udp        0      0 0.0.0.0:7777            0.0.0.0:*                           1002       74290      10583/./ShooterGame
udp        0      0 0.0.0.0:7778            0.0.0.0:*                           1002       76195      10583/./ShooterGame

So despite server running, it seems I cannot get it to listen on the ports. What am I missing? With ports properly forwarded, firewall disabled, server running, ports properly listed in config files of Ark, I am at a loss. Any help would be greatly appreciated!
 

kanewolf

Titan
Moderator
Hello,
I am having major issues with hosting a dedicated server for Ark Survival Evolved. I have it on a separate Linux machine running Debian 11. I've tried various methods of setup (direct on linux, AMPCubecoders, and currently LinuxGSM) and none work outside of LAN.
  • I have port forwarding set up for TCP/UDP on 7776-7778, 27015-27016, 27020, and 34197. Port forward settings identical to my Minecraft/Valheim servers I've set up previously on this same Linux server, so I know they work. Unifi dream machine is the router.
  • Firewall (UFW) has opened all ports above. Also attempted with firewall disabled.
Startup command lists the ports and uses 0.0.0.0 for public IP which should mean that it is available for outside connection

Code:
./ShooterGameServer Fjordur?AltSaveDirectoryName=Fjordur?listen?MultiHome=0.0.0.0?MaxPlayers=5?QueryPort=27015?RCONPort=27020?Port=7777 -automanagedmods -crossplay -PublicIPForEpic=0.0.0.0 -NoBattlEye

my output for ss -tuplwn | grep ShooterGameServ is:

Code:
arkserver@regierserver:~$ ss -tuplwn | grep ShooterGameServ

udp   UNCONN 0      0            0.0.0.0:27015      0.0.0.0:*    users:(("ShooterGameServ",pid=10583,fd=13))
udp   UNCONN 0      0            0.0.0.0:7777       0.0.0.0:*    users:(("ShooterGameServ",pid=10583,fd=30))
udp   UNCONN 0      0            0.0.0.0:7778       0.0.0.0:*    users:(("ShooterGameServ",pid=10583,fd=31))
tcp   LISTEN 0      16           0.0.0.0:27020      0.0.0.0:*    users:(("ShooterGameServ",pid=10583,fd=29))

My output for netstat -tulpen | grep -i shooter is:

Code:
root@regierserver:/home/arkserver# netstat -tulpen | grep -i shooter

tcp        0      0 0.0.0.0:27020           0.0.0.0:*               LISTEN      1002       74291      10583/./ShooterGame
udp        0      0 0.0.0.0:27015           0.0.0.0:*                           1002       75807      10583/./ShooterGame
udp        0      0 0.0.0.0:7777            0.0.0.0:*                           1002       74290      10583/./ShooterGame
udp        0      0 0.0.0.0:7778            0.0.0.0:*                           1002       76195      10583/./ShooterGame

So despite server running, it seems I cannot get it to listen on the ports. What am I missing? With ports properly forwarded, firewall disabled, server running, ports properly listed in config files of Ark, I am at a loss. Any help would be greatly appreciated!
If it works on LAN but not on WAN, then you either don't have a public IP address or your port forwarding isn't correct.
On your UDM have you verified that you have a public IP address on the WAN ?
 

Rulenine

Honorable
Mar 20, 2016
4
0
10,510
If it works on LAN but not on WAN, then you either don't have a public IP address or your port forwarding isn't correct.
On your UDM have you verified that you have a public IP address on the WAN ?
Correct, public IP confirmed identical to what UDM Dashboard says and whatsmyip says. Can change the identical port forwarding settings I have to 25565-25566 and ports all are open and a game server can be run for minecraft and connected to via external networks. Change the ports to the ones listed previously for Ark Survival Evolved, and no connection outside of LAN gets through. Running sudo netstat -ltnp shows that the ports 7777, 7778, and 27015 don't show up as "LISTEN", only 27020.