Terraria Dedicated Server: Admin Commands & TShock/TML Guide

Data Verified: May 2026

Definitive Terraria server reference. Configure serverconfig.txt, run TShock or tModLoader, manage cross-play with mobile clients, and size hardware for stable multi-world hosting.

Default file locations

Default installation paths for Terraria dedicated servers installed via SteamCMD.

Windows

C:\TerrariaServer\

Linux

/home/steam/terrariaserver/

Pro-Tip: Always stop the server completely before editing configuration files, or the server will overwrite your changes upon restart.

Default ports for port forwarding

Open these on your router and firewall before exposing the server to the internet.

Default ports for Terraria
ServiceProtocolPort
Game PortTCP7777
Query Port-N/A (no Steam query)
RCON / TelnetTCP7878 (TShock REST)

Frequently asked questions

Browse all games →

Host your own Terraria server

All hosting guides →

Step-by-step install and deploy walkthroughs (panels, ports, RAM sizing). Pair these with the command reference above.