Connectivity Problem with Terraria - Port 7777 closes after a short while

System Information

Field Value
Operating System Linux - Ubuntu 24.04.2 on x86_64
Product AMP ‘Phobos’ v2.6.2.0 (Mainline)
Virtualization None
Application Terraria
Module GenericModule
Running in Container No
Current State Ready

Problem Description

Issue

After starting my Terraria server, port 7777 stops listening. This makes it so that no new players can join the server. The only remedy I have found is to restart the server. I have tried adding port forwarding rules and reservations in my router but there is no effect.

Reproduction Steps

  • Start server
  • Ports 2225 TCP and 7777 TCP are open/“listening”
  • Randomly around an hour-ish, port 7777 will stop listening