October 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 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 With TerrariaServer.exe

A step-by-step Windows guide to TerrariaServer.exe: locate the dedicated server, automate startup with serverconfig.txt, select and back up worlds, configure TCP 7777, connect LAN and internet players, run multiple instances, and troubleshoot failures.
Length10 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

TerrariaServer.exe is the dedicated Windows server included with a Terraria installation. You can launch it interactively, choose or create a world, and keep the console open while players connect. For repeatable starts, place settings in serverconfig.txt and run TerrariaServer.exe -config serverconfig.txt. Internet players normally need TCP port 7777 forwarded from your router to the host PC, while players on the same network can use the host’s local IP address.

This guide covers locating the executable, creating a configuration, selecting worlds, opening the correct network path, connecting players, running multiple instances, administering a live server, and recovering from the most common mistakes.

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.

What TerrariaServer.exe does

TerrariaServer.exe is Terraria’s standalone dedicated-server program for Windows. It runs the game world without opening the normal single-player client, presents a text console for setup and administration, and remains active while players are connected. The Windows game installation normally includes it, so you do not need a separate server download for a basic Windows-hosted server.

The server process is the authority for the world: changes made by connected players are written to the server’s world file, and everyone joining that process sees the same world state. The computer running the process must stay awake, connected to the network, and have the console left running for the duration of the session.

#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter | 4Pack Type C Female to A Male Cable Converter for Apple Duo 17 16 15 14 Plus,iWatch Watch 12 11 10,iPad 9 8 Air,Airpods 5 4
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Before you start

  • A Windows installation of Terraria containing TerrariaServer.exe.
  • A world you want to host, or permission to create a new one.
  • Administrator access to the home router if friends will connect over the internet.
  • Permission to allow the server through the Windows firewall.
  • The host computer’s local IP address for router forwarding or LAN play.
  • A backup location for the world file and, if used, the configuration file.

You can host only on your local network without changing the router. Public hosting requires a reachable address and a correctly forwarded TCP port; simply starting the executable does not make it visible to the internet.

Find and launch TerrariaServer.exe

Locate the file through Steam

  1. Open Steam and go to your Terraria library entry.
  2. Open the game’s Manage menu and choose Browse local files.
  3. In the folder that opens, find TerrariaServer.exe.
  4. Double-click the executable to open the dedicated-server console.

If you installed Terraria by another Windows method, open that installation’s main folder and look for the same file. The server executable is normally beside the game’s other Windows files, not inside your personal saved-world directory.

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

Run the interactive setup

When started without a configuration switch, the console guides you through the initial choices. It lists available worlds, lets you select one, and offers to create a world if you do not already have one. Follow each prompt, then note the port and other values printed by the server before sharing connection details.

Interactive startup is useful for a one-off session or for learning the prompts. It is less convenient when you restart frequently, because you must repeat the selections every time. A configuration file removes that repetition.

Create a serverconfig.txt file

Make the file and start it explicitly

  1. Open the folder containing TerrariaServer.exe, or choose a nearby folder where you will keep server files.
  2. Create a plain-text file named serverconfig.txt. Ensure Windows has not silently added a second .txt extension.
  3. Add one setting per line using the format name=value.
  4. Save the file.
  5. Open Command Prompt in the executable’s folder and run TerrariaServer.exe -config serverconfig.txt.

The -config switch is required to tell the executable which file to read. Relative paths are resolved from the folder containing the executable, so a config in that folder can be named directly. If you store it elsewhere, provide the path and quote it when the path contains spaces, for example TerrariaServer.exe -config "D:Terraria Serversfriends.txt".

Rank #2
Sale
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Configuration settings

Setting Purpose Example
world Loads a specific existing .wld file. world=C:Users<User>DocumentsMy GamesTerrariaWorldsMyWorld.wld
autocreate Creates a world automatically instead of selecting an existing file. The documented values are 1, 2, or 3. autocreate=2
seed Sets the seed used when an automatic world is created. seed=your-seed-text
worldname Sets the name for an automatically created world. worldname=WeekendWorld
difficulty Sets the world difficulty value. Documented values are 0, 1, 2, or 3. difficulty=1
maxplayers Sets the maximum number of simultaneous players accepted by that server process. maxplayers=8
port Chooses the TCP port on which this instance listens. port=7777
password Requires joining players to enter a server password. password=choose-a-password
motd Displays a message of the day when players join. motd=Be respectful and save before leaving

Use either world= for an existing save or the automatic-creation settings for a new world. Do not rely on an old interactive selection if you need a particular save to load every time: point world= directly at the intended .wld file.

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

A practical configuration example

world=C:Users<User>DocumentsMy GamesTerrariaWorldsMyWorld.wld
maxplayers=8
port=7777
password=replace-this
motd=Welcome to the group world

Replace the user name, file name, password, and player limit with your own values. Keep the file next to the executable if you want the short startup command. Never publish a real password in a public post.

Make startup one click

Create a Windows shortcut whose target runs TerrariaServer.exe -config serverconfig.txt, or save that command in a batch file in the server folder. Make a separate shortcut or batch file for each world you host. This prevents repeatedly typing a path and makes it obvious which world and settings a particular window uses.

World files, locations, and backups

On Windows, the standard world directory is C:Users<User>DocumentsMy GamesTerrariaWorlds. The folder may be shown through the user’s Documents, My Games, Terraria, and Worlds folders rather than as a single special application path.

Use an existing world safely

  1. Stop any server currently using the world, using the console’s save command first.
  2. Confirm the intended .wld file exists in the Worlds folder.
  3. Copy the file to a separate backup location before changing configuration or experimenting.
  4. Set the config’s world= line to the exact file path.
  5. Start the server and verify the world name shown in the console.

Keep a copy of serverconfig.txt beside the world backup. The world file preserves the game state; the config preserves the startup choices that make the correct file, port, password, and player limit load again.

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.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Creating a new world automatically

Omit world= when you want the server to create a save. Set autocreate, and optionally provide seed, worldname, and difficulty. After creation, the resulting world is saved and can be referenced explicitly with world= on later launches.

Choose a port and let players connect

The default port

Terraria’s dedicated server listens on TCP port 7777 by default. The port in the server configuration, the port permitted by the firewall, the router’s forwarding rule, and the port entered by remote players must all agree.

LAN-only play

For players on the same home or office network, give them the host computer’s local IP address and the server port. They can connect without exposing the process to the public internet. Use the host’s current local address, not the router’s public address. Keep the host awake and leave the server console running.

Internet play behind a router

  1. Give the host computer a stable local address, either by reserving it in the router or by ensuring the address will not change.
  2. Create a router port-forwarding rule for TCP 7777 to that local address. If you changed port=, forward the chosen port instead.
  3. Allow TerrariaServer.exe or the selected TCP port through the Windows firewall on the network profile you use.
  4. Start the server and confirm it is listening on the same port you forwarded.
  5. Send remote players your public IP address and port. They should enter the public address, not the host’s private LAN address.

Port forwarding is needed because a home router normally hides devices behind NAT. A firewall exception alone does not create the router route, and a router rule alone does not override a blocked Windows firewall.

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

When forwarding is unavailable

If your internet provider uses restrictive NAT or you cannot change the router, the official server reference identifies Hamachi and Radmin VPN as alternatives. Every player must install and join the same VPN network, then connect using the host’s VPN address and the server port. This is a workaround for reachability; it does not remove the requirement that the host process and firewall be working.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Joining from the Terraria client

Players use Terraria’s multiplayer join flow and enter the address and port supplied by the host. LAN players use the host’s local IP; internet players use the public IP; VPN players use the host’s VPN address. If a password is configured, they must enter it exactly. A successful connection normally places the player in the world and displays the configured message of the day.

Run more than one Terraria server on one computer

Multiple server processes can run on a single Windows computer, but each process must have its own configuration file, world, and listening port. For example, one shortcut can start a creative world on port 7777 while another starts a second world on port 7778.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Make a distinct config file for each instance.
  2. Set a different world= path in each file.
  3. Assign a unique port= value to every process.
  4. Create a separate shortcut or batch file that names the intended config.
  5. For internet access, forward each external port to the same host’s corresponding port.

Two processes cannot listen on the same TCP port. If one instance starts and the other reports a binding or port error, check that the port values are different and that no older server window is still running.

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

Administer a running server from the console

Keep the server console visible while people play. The console accepts commands typed at its prompt; type a command and press Enter.

Command Use
help Displays available server commands.
playing Lists players currently connected.
save Saves the current world state.
exit Stops the server after a normal shutdown.
exit-nosave Stops without saving the current changes; use only when intentionally discarding them.
kick <player name> Removes the named player from the server.
ban <player name> Bans the named player.

Run save before planned maintenance or backups. Use exit rather than closing the console window abruptly so the process can shut down normally. The angle-bracket text in the kick and ban examples means you substitute the player’s actual name; do not type the brackets.

Best Value
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Useful startup switches

In addition to -config, the dedicated server supports switches documented by the official reference:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • -secure enables secure server behavior.
  • -steam starts with Steam-related server support.
  • -lobby friends or -lobby private selects the corresponding lobby visibility.
  • -ip <ip address> binds the process to a specified IP address.
  • -seed <seed> supplies a world-generation seed when creating a world.

Use a switch only when you understand which interface or address it changes. A config file remains the clearest place for persistent world, port, password, and player-limit settings.

Troubleshoot the problems that stop people joining

The executable is missing

Use Steam’s Manage → Browse local files command and search the opened Terraria installation folder for TerrariaServer.exe. Windows installations normally include the server software. If you are looking in the Worlds directory, you are in the save area rather than the program directory.

The config appears to be ignored

  • Check that the command contains a space before -config.
  • Verify the file name and extension exactly, including capitalization where relevant to your workflow.
  • Confirm the path is quoted if it contains spaces.
  • Run the command from the executable’s folder when using a relative config path.
  • Open the file as plain text and check that each setting uses name=value on its own line.

Friends cannot join

  1. Confirm the server console is still running and has not exited after an error.
  2. Check the configured port and make sure players are using that same port.
  3. Allow the server through the Windows firewall.
  4. For internet play, verify TCP forwarding points to the host’s current local IP address.
  5. Make sure remote players are using the public IP, while LAN players use the local IP.
  6. Check the password and the server’s maximum-player setting if the process is full.

The wrong world loads

Replace an ambiguous interactive selection with an explicit world= path. Verify the referenced .wld file exists in the expected Worlds directory and that the shortcut or batch file is launching the config you edited, not another file with a similar name.

Several servers conflict

Give every process a separate config, world, and port. Close an old instance before reusing its port, and make sure each shortcut points to the intended configuration.

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

Players are disconnected when the host leaves

The dedicated process is still running on the host computer, so the host must remain awake and connected. Closing the console, signing out in a way that stops the process, shutting down the PC, or losing the network ends the session for everyone connected.

A dependable operating routine

  1. Back up the world and configuration before a major build session or configuration change.
  2. Start the intended shortcut or batch file and read the console output for the world and port.
  3. Test a local connection before asking remote players to troubleshoot router settings.
  4. Use playing to check the connected-player list and save before maintenance.
  5. Announce planned shutdowns, then use exit and wait for the process to close normally.
  6. After changing routers, firewall rules, ports, or world paths, test from the affected type of connection again.

With the executable, configuration, world backup, and network rule kept together, restarting the server becomes a repeatable operation rather than a sequence of remembered prompts.

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
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver 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.