October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

How to Run a Terraria Server 24/7

Run Terraria around the clock with a dedicated server, repeatable config, correct TCP 7777 networking, persistent processes, backups and recovery.
Length12 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To keep a Terraria world available around the clock, run the dedicated server executable—not Host & Play—on a computer or VPS that remains powered and connected. Save the world and launch settings in a configuration file, keep the process under a service or persistent session, open TCP port 7777 (or your chosen port), and maintain tested backups. A home server normally needs a fixed local address, a firewall rule, and router port forwarding; a non-NAT VPS usually needs only its host firewall opened.

What a real 24/7 Terraria setup contains

A reliable server is a small system of separate parts. The Terraria dedicated-server process accepts connections and writes changes to a world file. The world file is persistent data; the configuration file tells the process which world, port, player limit, password, and other settings to use. Your operating system, network, and a restart/backup plan keep those pieces available when nobody is watching.

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.

Host & Play is designed around a player’s session. When that host leaves, the session ends. It is therefore unsuitable for a world that friends should enter while the owner is away. Use the dedicated server included with Terraria on Windows, the dedicated-server files on Linux, or a separate VPS/managed host instead.

  • Server process: runs continuously and listens for players.
  • World file: the saved .wld data that must be backed up.
  • Configuration: a repeatable record of the world path, port, password, slots, and network options.
  • Reachable network path: a LAN address and firewall/router rules for a home host, or a permitted port on a data-center host.
  • Operations: persistence after an SSH or terminal disconnect, automatic restart, logs, maintenance windows, and off-host backups.

“24/7” describes the operating goal, not a guarantee made by the Terraria executable. Power failures, an ISP outage, a crashed process, maintenance, or a damaged world can still interrupt access. Continuous availability comes from maintaining the whole chain.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Choose where to host

Option What you need Advantages Trade-offs
Home Windows PC Terraria installation, a machine that stays on, fixed LAN address, firewall rule, and usually router forwarding Uses hardware you already own; familiar graphical setup Consumes power, depends on home internet and upload quality, and may be blocked by CGNAT
Home Linux machine Dedicated-server files, command-line utilities, executable permissions, persistent session or service, and the same network steps Efficient for an always-on mini-PC or spare machine; easy to automate Requires comfort with SSH, permissions, logs, and distribution-specific packages
VPS or managed game host A compatible Terraria installation, provider firewall rule, and a backup/restart policy you understand Separate from your gaming PC; data-center networks generally avoid home-router forwarding and CGNAT Recurring cost and provider-specific limits, versions, backups, and restart behavior

A VPS or managed host is the cleanest choice when the home computer cannot stay on, your ISP uses carrier-grade NAT (CGNAT), or you want the server isolated from the machine used to play. A data-center connection normally does not require forwarding a port on your home router, but its own firewall still must allow the configured TCP port. Before selecting a provider, verify the Terraria version it supports, whether worlds are backed up, how restarts work, and what happens when the subscription or service is interrupted.

Prepare a configuration file

Typing answers into the interactive server menu after every reboot is error-prone. Put the values in a text file and pass that file to every launch. The exact available options can vary with the server build; keep the file beside your startup script and record any intentional changes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
world=C:TerrariaServerWorldsfriends.wld
port=7777
maxplayers=8
password=use-a-long-unique-password
motd=Welcome to our world
banlist=C:TerrariaServerbanlist.txt
secure=1
upnp=0
  • world points to the saved world. Use an absolute path when practical so a service cannot accidentally resolve a different working directory.
  • port=7777 selects the default TCP port. You may choose another unused TCP port, but players must use the same value and the firewall/forwarding rules must match.
  • maxplayers limits simultaneous players. Do not confuse this with available memory or a provider’s plan limit.
  • password protects a public endpoint. Use a unique passphrase and share it privately.
  • motd is the message players see when joining.
  • banlist identifies the file used for bans; keep it in a directory included in backups.
  • secure and upnp should reflect your network policy. If you do not want the server to request automatic router mapping, leave UPnP disabled and create a deliberate rule instead.

For multiple worlds, create one configuration file, world file, log location, and TCP port per instance. Two processes cannot reliably share the same port, and launching the wrong file can make a world appear to have “reset.”

Set up a Windows server

Locate the dedicated executable

A Terraria installation includes TerrariaServer.exe. Find it in the Terraria installation directory, then create a dedicated folder such as C:TerrariaServer for the configuration, worlds, ban list, logs, and backups. Keeping server data separate from the game’s ordinary client files makes upgrades and backups easier.

Create or select the world

Run TerrariaServer.exe once interactively if you need to create a world or inspect the available worlds. Choose the world, player limit, password, and port. Close the server cleanly, then save the resulting choices in your configuration file so subsequent launches are deterministic.

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Launch with the saved configuration

TerrariaServer.exe -config serverconfig.txt

Run that command from the directory containing the executable and configuration, or use absolute paths. The official server guidance also supports a Windows startup batch file. A simple start-server.bat can contain:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
@echo off
cd /d C:TerrariaServer
TerrariaServer.exe -config serverconfig.txt

For a genuine unattended service, schedule the batch file with Windows Task Scheduler at system startup and configure it to run whether or not a user is logged in. Set a restart-on-failure action, capture standard output to a dated log, and make sure the account has read/write access to the world and backup directories. Test the task by rebooting the machine and joining from another device; do not assume that a successful manual launch proves the startup task uses the same working directory or configuration file.

Allow the process through Windows Firewall

  1. Start the server once so Windows can identify the executable, or create an inbound rule manually.
  2. Allow inbound TCP traffic on the configured port (7777 by default) for the appropriate network profile.
  3. Limit the rule to the profiles and source networks you actually use; avoid opening unrelated ports.
  4. Confirm the rule points to the server executable or port you launch, not an obsolete copy left by an older installation.

Set up a Linux server

Install and prepare the files

Download the dedicated-server files for the Terraria version your clients will use. Install the basic command-line utilities required by your distribution, unpack the files into a dedicated directory, and make the server binary executable:

chmod +x TerrariaServer

The exact package-manager command for utilities such as a terminal multiplexer differs between distributions, so use the package manager documented by your operating system. Keep the server under a non-root account with ownership of its world, configuration, log, and backup directories.

Launch from a configuration file

./TerrariaServer -config serverconfig.txt

Use the same configuration concepts as Windows, with Linux paths such as /srv/terraria/worlds/friends.wld. Confirm that the configured user can create or modify the world and ban-list files. A permission error at startup can look like a missing world, so inspect the path and ownership before generating a replacement.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

Keep it alive after SSH disconnects

Launching directly in an SSH window ties the process to that session. Use a persistent session or a service manager. With a multiplexer, start a named session, launch the server, detach, and later reattach to read the console. A service manager is preferable for unattended operation because it can start at boot, restart after a crash, and send output to the system journal.

tmux new -s terraria
./TerrariaServer -config /srv/terraria/serverconfig.txt
# detach with the tmux detach key sequence
# reconnect later with:
tmux attach -t terraria

If you use a service unit, configure its working directory, the exact -config path, a restricted service account, a restart policy, and a deliberate stop timeout so the server can save the world. Test a stop/start cycle and inspect logs before inviting players.

Configure the network

The default Terraria server port is TCP 7777. The number is not a magic requirement: changing it is valid, but every client, firewall, and forwarding rule must then use the replacement.

  1. Reserve a stable LAN address. Create a DHCP reservation on the router for the server’s network adapter, or assign a static address according to your network plan. A forwarding rule aimed at a changing address will eventually point at the wrong device.
  2. Permit the host firewall. Allow inbound TCP on the configured port. On Linux, add the equivalent rule to the distribution firewall; on Windows, allow the executable or port in Windows Firewall.
  3. Forward the port at home. On a normal residential NAT connection, map external TCP 7777 to the server’s fixed LAN address and the same internal port. Router menus differ, so record the rule’s protocol, internal address, and port rather than copying a label from another model.
  4. Skip home forwarding on non-NAT hosting. A VPS or other data-center connection generally has a public address directly on the host. Open the provider’s network firewall/security-group rule for the chosen TCP port instead.
  5. Give players the right endpoint. Remote players use your public IP address or a DNS name plus the configured port. Players on the same LAN should use the server’s private address; some routers do not support “hairpin” access through the public address.

If your ISP places you behind CGNAT, the router may show a private WAN address and incoming forwarding will not work even when the local rule is perfect. Ask for a public address, move the server to a non-NAT host, or use a private VPN overlay that every participant can install and operate. A VPN changes the connection model: players join the overlay address, and access depends on every member’s VPN client and permissions.

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

Make uptime an operations routine

Use controlled restarts

Keep a written maintenance procedure: announce a shutdown, save or stop the server cleanly, copy the world, replace or upgrade binaries, launch the same configuration, and verify a test connection. Never overwrite a live .wld file while the server is running; that risks a partial write and corruption.

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

Capture logs and watch health

Retain console output or service logs with timestamps. Check that the process is listening on the expected port, that the world save time advances, and that the host has free disk space. A lightweight external check can attempt a TCP connection or alert when the process disappears, but an open port alone does not prove that the correct world loaded.

Back up worlds off the host

Keep dated copies of every important .wld file on a different disk or machine. Periodic snapshots protect against accidental deletion; rotating several generations protects against discovering corruption days after it occurred. Include the configuration and ban-list files so a restore reproduces the same rules. Periodically copy a backup back to a temporary directory and verify that it can be opened, rather than trusting a file merely because it exists.

The Terraria server performs automatic world saves. TShock additionally documents controls named AutoSave, SaveWorldOnCrash, SaveWorldOnLastPlayerExit, BackupInterval, and backup-retention settings. Configure those deliberately, but still keep independent off-host copies: an automatic save on the same failing disk is not a backup.

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

Plan for failure

  • Set an automatic restart policy for an unexpected process exit, with a short delay to avoid a crash loop.
  • Leave enough disk space for world growth, logs, and several backups.
  • Record the Terraria build and any server-side modifications before updating.
  • Schedule updates when players are offline and test the exact client/server version combination afterward.
  • Keep credentials, router details, and the restore procedure somewhere accessible if the primary administrator is unavailable.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Vanilla Terraria or TShock?

Vanilla is the shortest path to the standard game: install the matching dedicated server, protect it with a password, and administer it through the server console. TShock is third-party server software that adds administration and automation, including commands, whitelists, login controls, bans, and plugin interfaces. It also exposes settings for slots, autosave, crash saves, and backups.

Decision factor Vanilla dedicated server TShock
Best fit A group that wants the unmodified Terraria experience and simple password access A community needing structured moderation, permissions, commands, or plugins
Administration Basic console administration and password protection Accounts, commands, whitelist and ban tooling, plus plugin-driven administration
Backups and saves Automatic world saving; external backup routine remains your responsibility Documented autosave, crash-save, last-player-exit save, interval, and retention controls
Compatibility work Use the dedicated server matching the clients Match the TShock release to the Terraria version and check plugin compatibility after updates
Configuration Server configuration file passed with -config TShock has its own configuration system; its config.json keys are not interchangeable with vanilla settings
Maintenance burden Fewer moving parts More features, but more software and plugin updates to test

TShock’s documented defaults include ServerPort 7777 and MaxSlots 8. Treat those as TShock defaults, not universal limits for every server build. Choose TShock because you need its administrative features, not merely because a server is online continuously.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

Run more than one world

Each instance needs its own process resources and identity:

  • A distinct .wld file and world path.
  • A separate configuration file.
  • A unique TCP port, such as 7777 for one instance and another unused port for the next.
  • Separate logs, backup folders, and service or scheduled-task names.
  • Firewall and router rules for every externally reachable port.

Do not launch two instances with the same configuration or port. If one world appears when you expected another, stop both processes, inspect the command line and working directory, and relaunch each with an absolute configuration path.

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

Troubleshoot by symptom

Players cannot connect from outside the house

  • Confirm the server console shows it is listening on the configured port and that the process is still running.
  • Check the host firewall rule and its network profile.
  • Verify the router forwards TCP—not only UDP—to the server’s current fixed LAN address.
  • Check the public IP shown by the router against the address players are using.
  • Investigate CGNAT or an upstream modem/router that is also performing NAT.

Local players connect, but remote players cannot

The world and server process are probably healthy. Concentrate on the path between the internet and the host: forwarding target, WAN address, ISP restrictions, provider firewall, and any second router in bridge/access-point mode.

The process stops when a terminal closes

Move the launch into a persistent session or service manager. Reconnect to the session or inspect the service logs, then configure automatic startup and restart after you have confirmed a clean manual stop.

The world or settings change after a reboot

Compare the command line used at boot with the one used manually. Confirm that both use the same -config file, absolute world path, user account, and working directory. Search for duplicate installations and stale batch files.

A crash causes apparent world loss

Stop the process, preserve the current files for diagnosis, and restore the newest verified backup to a separate location before replacing the live world. Review autosave, crash-save, backup interval, and retention settings; do not delete the only damaged copy.

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

TShock login or plugin errors appear

Use the configuration format and release that belong to your TShock version. Do not paste vanilla server keys into config.json or assume a plugin built for another Terraria/TShock combination will load. Disable or update plugins one at a time and keep a known-good backup of the world and configuration.

Pre-launch and ongoing checklist

  • Dedicated server files and client versions are compatible.
  • The intended world opens and has a recent, tested backup.
  • The configuration file uses the correct absolute world path, port, slots, password, MOTD, ban list, and network options.
  • The host has a stable LAN address, sufficient disk space, and a firewall rule for the configured TCP port.
  • A home router forwards the port, or a VPS/provider firewall permits it without unnecessary home-router changes.
  • The process starts automatically, survives terminal/SSH disconnects, and restarts after an unexpected exit.
  • Logs are retained and someone receives an alert when the process or host becomes unavailable.
  • Dated world backups are stored off the server and a restore has been tested.
  • Players have the correct public or private address, port, and password—and know when maintenance occurs.

With those controls in place, a Terraria server can remain available independently of any one player’s game session. The dedicated process, repeatable configuration, reachable network path, and recoverable world are the parts that make “24/7” dependable.

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.

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
PC Slower Than It Used to Be?Free scan - under a minute

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.