Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
VGSources
Blog

Terraria Server Commands for Admins and Hosts

Use this vanilla Terraria dedicated-server command reference to manage players, save or shut down safely, configure passwords and MOTDs, inspect port 7777, and choose between Host & Play and an independent server.
Length9 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a vanilla Terraria dedicated server, enter administration commands in the server console without a leading slash. Use save for an explicit world save and exit for a normal shutdown that saves automatically. Moderation uses kick <player name> for a one-session removal and ban <player name> for a persistent ban. The documented default network port is 7777, and startup settings can be supplied with command-line arguments or a configuration file.

Where Terraria commands are entered

These commands apply to the vanilla PC dedicated server launched through TerrariaServer. Type them at the dedicated server’s console prompt. A leading slash is not required there; enter save, not /save. Players using in-game chat can type /playing to see who is connected, but the other administrative commands in this reference are console commands.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The official command reference is maintained by the Official Terraria Wiki’s dedicated-server documentation. Modded server software can add, remove or alter commands, so verify behavior against the software you actually run.

Complete vanilla dedicated-server command reference

Command What it does Typical use
help Displays the available command list. Use after startup or when checking which commands the running build supports.
playing Lists connected players. Check who is currently online before maintenance or moderation.
clear Clears text from the server console. Remove old output without changing the world.
save Saves the current world. Create an explicit save before maintenance, backups or a planned restart.
exit Saves and shuts down the server. Routine, safe shutdown.
exit-nosave Shuts down without saving. Only when you deliberately want to discard changes made during the current session.
kick <player name> Removes the named player from the current server session. Deal with an immediate disruption without creating a lasting ban.
ban <player name> Adds the named player to the ban list. Block that player from returning under the server’s ban-list rules.
password Shows the current server password. Check the active password when administering locally.
password <pass> Changes the server password. Rotate access credentials while the server is running.
version Prints the server version. Confirm the build when diagnosing client/server mismatches.
time Displays the current in-game time. Inspect the world clock before changing it.
port Reports the listening port. Confirm which port the running instance is using.
maxplayers Reports the configured player limit. Check capacity without opening the startup configuration.
say <message> Broadcasts a yellow server message to players. Announce restarts, rules or maintenance to everyone online.
motd Prints the current message of the day. Review the text players receive as the server message.
motd <message> Changes the message of the day. Update welcome text or current server notices.
dawn Sets the in-game time to dawn. Move the world clock to the start of the day.
noon Sets the in-game time to noon. Move directly to midday.
dusk Sets the in-game time to dusk. Move directly to the evening transition.
midnight Sets the in-game time to midnight. Move directly to the middle of the night.
settle Settles all water in the world. Recalculate and stabilize water after large changes or flooding.
death Displays death statistics where supported. Inspect the server’s available death statistics.
pvpdeath Displays player-versus-player death statistics where supported. Review PvP-related deaths when the running version provides them.
alldeath Displays all death statistics where supported. Request the aggregate death report.
allpvpdeath Displays all PvP death statistics where supported. Request the aggregate PvP death report.

The four death-statistics commands are marked “where supported” because their output depends on the server version and implementation. If a command is not recognized, run help and check version rather than assuming the console is malfunctioning.

#1 Best Overall
505 Games Terraria 71501866
  • In Terraria, every world is unique-from the floating islands in the sky to the deepest level of The Underworld. Adventure to the ends of the earth, and defeat villainous bosses along the way. The world is your canvas!

Kick, ban and unban players

Kick someone for the current session

Run kick <player name> with the player’s server-visible name. The command removes that player immediately, but it does not create a persistent ban. A kicked player can reconnect if they still have the password and the server otherwise accepts them.

Ban someone persistently

Run ban <player name>. The server adds the player to its ban data, making the action persist beyond the current connection. Use a ban when removing the player is not enough and future access must be blocked.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Remove a ban manually

The documented unban process is file-based rather than a console command. Stop the server safely, make a backup of banlist.txt, then edit that file and remove the affected player’s name and IP address. Save the edited file before restarting. Keeping a backup lets you restore the previous list if the wrong entry is removed or the file is damaged.

Rank #2
Terraria Boss Rush: Hardmode Edition T-Shirt
  • Gaming Boss Battles design. Boss Rush: Hardfashion Edition items are perfect for fans of Terraria or anyone who likes cool video game clothes! These Terraria items feature the hardmode bosses and is a great way to show your enthusiasm for Terraria!
  • Part of the official Terraria merchandise line from Re-Logic, the creators of Terraria! If you are a terraria fan or should know one, get this design to give yourself or others who play terraria a great gift.
  • Lightweight, Classic fit, Double-needle sleeve and bottom hem

Save and shut down without risking the world

Command World saved? Use it when
save Yes You want an explicit save while leaving the server online, such as before a backup or maintenance window.
exit Yes You are performing normal maintenance or ending the server session.
exit-nosave No You intentionally want to discard changes made since the last save.

For routine administration, use save followed by exit when you need both a checkpoint and a shutdown, or use exit alone for a normal close. Do not close the console window with its window controls as your regular shutdown method; the setup guidance recommends the save and exit commands so the server can complete its save sequence cleanly.

Passwords, announcements and the message of the day

Change access while the server is running

password prints the active password. To replace it, enter password <pass>. Treat the password as an access credential: distribute the new value only to people who should join, and remember that changing it does not remove players already connected.

Send a live announcement

say <message> broadcasts a yellow message to every connected player. It is suited to immediate notices such as “Server saving in five minutes” or “Restart at 22:00 UTC.”

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Terraria Bunny Plush
  • Product Type:Toy Figure
  • Item Package Dimension:11.6 cm L X 14.4 cm W X 15.8 cm H
  • Item Package Weight:0.1 kg
  • Country Of Origin: China

Set persistent welcome text

Enter motd to display the current message of the day. Enter motd <message> to replace it. Use the MOTD for information that should remain in effect between sessions, while say is better for a one-time announcement.

Inspect and control time, capacity and water

time reports the in-game clock. The commands dawn, noon, dusk and midnight set the clock to those named points. These alter the world time rather than the computer’s system clock.

port reports the port currently used by the running server, and maxplayers reports its player limit. They are useful verification commands after a restart or configuration change. settle settles all water, which can help bring water simulation to a stable state after construction, excavation or flooding.

Rank #4
Terraria PS Vita Game
  • 14 Different environments (including dungeons, floating islands, jungles) that go to the extremities of the earth, up in the sky and all the way down to the very deepest depths of the world.
  • Hundreds of weapons, armour and other items to craft, with character advancement.
  • Explore to find different materials and make exotic potions, laser guns, magic wands, flamethrower, diving gear, speed boots, grappling hooks, chainsaws, magic mirrors, etc.
  • 29 Different block types to build whatever you imagine!
  • NPCs and a swarm of enemies (over 150 types) including goblins, wyverns, unicorns, and-GASP-clowns!

Terraria server port and startup configuration

The default and the active port

The documented default Terraria server port is 7777. Use port at runtime to see the active listening port. Choose a different port at launch with -port <number>, or in a configuration file with a line such as port=7777. The number in the config example is the documented default, not a requirement that every server use it.

If people outside your home network must connect, the setup guidance says port forwarding may be required. The forwarded router port, local firewall rule and value used by the server must agree. A successful port response proves which port the process is listening on; it does not by itself prove that an internet connection can reach the machine.

Useful launch arguments

TerrariaServer accepts several startup options. The documented set includes:

Best Value
Sale
CyberPowerPC Gamer Xtreme VR Gaming PC, Intel Core i5-13400F 2.5GHz, GeForce RTX 5060 8GB, 16GB DDR5, 1TB PCIe 4.0 SSD, WiFi Ready & Windows 11 Home (GXiVR8060A40)
  • System: Intel Core i5-13400F 2.5GHz 10 Cores | Intel B760 Chipset | 16GB DDR5 | 1TB PCIe 4.0 NVMe SSD | Windows 11 Home
  • Graphics: NVIDIA GeForce RTX 5060 8GB Graphics | 1x HDMI | 2x DisplayPort
  • Connectivity: 1 x USB-C 3.2 | 2 x USB-A 3.2 | 6 x USB-A 2.0 | 1 x LAN | WiFi 6 | Bluetooth 5.3 | 7.1 Channel Audio
  • Tempered Side Case Panel | Custom RGB Lighting | Keyboard and Mouse
  • 1 Year Parts & Labor Warranty, Free Lifetime Tech Support
  • -config <file path> to load repeatable settings from a configuration file.
  • -port <number> to select the listening port.
  • -players or -maxplayers to set the player limit.
  • -pass or -password to set the access password.
  • -motd to set the message of the day at startup.
  • -world to choose the world file.
  • -autocreate to control automatic world creation options.
  • -banlist to select the ban-list file.
  • -secure to enable the server’s secure mode.
  • -noupnp to disable UPnP behavior.
  • -steam and -lobby for the corresponding Steam/lobby hosting options.
  • -ip to bind the server to a specified IP address.

Exact syntax and available switches can vary with the Terraria server build. Run the executable’s help output or consult the official dedicated-server reference before copying a command into an automated startup script.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use a configuration file for repeatable starts

A config file avoids retyping the same settings after every restart. A minimal example using documented keys looks like this:

port=7777
password=your-server-password
motd=Welcome to the world
worldpath=path/to/your/world.wld
banlist=banlist.txt
secure=1

Save the file, then start the server with -config <file path>. Replace the password, message and world path with your own values; the sample path is illustrative, not a universal folder location. Protect the file because it contains the server password. The secure=1 setting enables secure mode in the documented configuration format.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Host & Play versus a dedicated server

Consideration Host & Play Dedicated server
Setup effort Simpler: start hosting from Terraria’s in-game flow. Requires launching and maintaining TerrariaServer separately.
Must the host remain in-game? Yes. The host’s game session is the hosting environment. No. The server process runs independently of a player’s active game client.
When nobody is playing The session generally ends when the host leaves. It can remain running for later connections, subject to the machine and network staying available.
Network configuration The in-game route handles more of the setup, but joining still depends on the network. Internet access may require port forwarding, firewall configuration and a deliberate bind/port setup.
Administrative control Convenient for a small, short-lived session. Console commands, config files, ban-list management and independent restarts provide more control.

Choose Host & Play when the priority is getting a few people into a world quickly and the host will be present. Choose a dedicated server when the world should be available independently, needs repeatable startup settings, or requires ongoing console administration.

Quick Recap

Bestseller No. 1
Bestseller No. 2
Terraria Boss Rush: Hardmode Edition T-Shirt
Terraria Boss Rush: Hardmode Edition T-Shirt
Lightweight, Classic fit, Double-needle sleeve and bottom hem
$19.99
Bestseller No. 3
Terraria Bunny Plush
Terraria Bunny Plush
Product Type:Toy Figure; Item Package Dimension:11.6 cm L X 14.4 cm W X 15.8 cm H; Item Package Weight:0.1 kg
$17.78
Bestseller No. 4
Terraria PS Vita Game
Terraria PS Vita Game
Hundreds of weapons, armour and other items to craft, with character advancement.; 29 Different block types to build whatever you imagine!
$40.99
SaleBestseller No. 5
CyberPowerPC Gamer Xtreme VR Gaming PC, Intel Core i5-13400F 2.5GHz, GeForce RTX 5060 8GB, 16GB DDR5, 1TB PCIe 4.0 SSD, WiFi Ready & Windows 11 Home (GXiVR8060A40)
CyberPowerPC Gamer Xtreme VR Gaming PC, Intel Core i5-13400F 2.5GHz, GeForce RTX 5060 8GB, 16GB DDR5, 1TB PCIe 4.0 SSD, WiFi Ready & Windows 11 Home (GXiVR8060A40)
Graphics: NVIDIA GeForce RTX 5060 8GB Graphics | 1x HDMI | 2x DisplayPort; Tempered Side Case Panel | Custom RGB Lighting | Keyboard and Mouse
$1,285.00

Practical administration workflows

Start a controlled maintenance window

  1. Use playing to see who is connected.
  2. Warn players with say <message>, including the expected downtime.
  3. Run save if you want a visible checkpoint before stopping.
  4. Run exit and wait for the console to finish shutting down.
  5. Perform the backup, configuration edit or ban-list change only after the process has stopped.

Deal with disruptive behavior

  1. Confirm the exact connected name with playing.
  2. Use kick <player name> for a temporary removal.
  3. Use ban <player name> when the player must be blocked from returning.
  4. If an incorrect ban is made, stop the server and edit banlist.txt after making a backup, removing the matching name and IP address.

Verify a new network configuration

  1. Set the intended port with -port <number> or the config key port=<number>.
  2. Start the server and run port to confirm the process is listening on that value.
  3. Check that the configured player limit is correct with maxplayers.
  4. For remote players, verify the router forwarding and local firewall rules for the same port.

Common mistakes and recovery

  • Typing slash commands in the console: remove the leading slash. Use playing in the console; /playing is the chat form for players.
  • Using exit-nosave as a normal close: switch to exit unless discarding the current session is intentional.
  • Closing the window instead of issuing a command: reopen the server and use save or exit for planned maintenance.
  • Assuming a ban has a console unban command: use the documented manual edit of banlist.txt, with a backup first.
  • Changing -port but not the network path: align the server setting, firewall and router forwarding.
  • Expecting port to test internet reachability: it reports the local listening value only; an external connection still depends on network routing.
  • Using a command from another server implementation: run help and version to establish what the current vanilla build supports.

Admin checklist

  • Keep the server password and config file private.
  • Use save before backups or risky maintenance.
  • Use exit for routine shutdowns and reserve exit-nosave for deliberate rollback.
  • Back up banlist.txt before manual unbans.
  • Record the selected port, player limit, world path and ban-list path in your operating notes.
  • After restarting, verify with version, port and maxplayers.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.