Setting up your own Terraria server allows you and your friends to explore, build, and battle together in your customized world, anytime you want. This guide will walk you through the steps to get your Terraria server up and running.
Downloading the Server Software
First, you need to download the dedicated server package directly from the official Terraria website. You can usually find the download link in the news section of terraria.org. Make sure to choose the correct version for your operating system.
Basic Server Setup
Once downloaded, extract the server program to a location on your computer. Run the server executable. It will guide you through a basic setup process via the command line. You’ll be prompted to:
- Select a world: Choose an existing world or create a new one for your server.
- Set max players: Decide the maximum number of players allowed on your server.
- Choose a port number: The default port is 7777, but you can select a different one if needed.
- Set a server password: Protect your server with a password for private games.
- Automatic port forwarding: This option is often unreliable, so manual port forwarding is generally recommended for external connections.
After these steps, your basic Terraria server should be running and accessible on your local network. You can use basic commands in the server console to manage the server, such as changing the time of day, settling liquids, and kicking or banning players. A full list of commands is available on the Terraria Wiki.
Port Forwarding for External Access
If you want friends outside your home network to join your server, you’ll need to configure port forwarding on your router. This process varies depending on your router brand and model, but generally involves accessing your router’s settings (usually through a web browser by typing your router’s IP address) and finding the port forwarding section.
You’ll need to create a new port forwarding rule that directs traffic from an external port (you can choose any port) to the internal IP address of the computer running the server and the port you selected during server setup (default 7777). Ensure you configure both TCP and UDP protocols for this rule.
Finding Your External IP
To give your friends the address to connect to, they will need your external IP address. The easiest way to find this is to simply search “What is my IP?” on Google. Provide this IP address and the external port number you configured in your router to your friends.
Advanced Server Options with TShock
For more advanced server management, consider using TShock. TShock is a popular server mod that provides a wider range of commands, in-game command access, user group management, and many other features. It’s particularly useful for larger servers or those wanting more control and customization. However, for a simple playthrough with a few friends, the basic server program may be sufficient.
Backups
Regularly backing up your world and player files is crucial, especially if you’re running a public server or making significant progress. This will protect your server data from potential issues or corruption.
By following these steps, you can create your own Terraria server and enjoy playing with friends. Remember to consult the Terraria Wiki and your router’s documentation for more specific details and troubleshooting tips.