# How to Host a Terraria Server for Free or Hosted (2026)

Host a Terraria server free with Host and Play or the free dedicated server on TCP port 7777, or hosted from 4.99 USD a month. Steps, mods and fixes.

Updated 2026-11-05. https://gamezservers.com/guides/how-to-host-a-terraria-server-for-free

There are three ways to host a Terraria server. Use **Host & Play** from your own game, which is free but stops when you quit. Run the free dedicated server from terraria.org on a Windows, Linux or Mac PC you leave on, with TCP port 7777 forwarded and about 2 GB of RAM for a vanilla world. Or host it with us from 4.99 USD a month, online about a minute after checkout with vanilla, tModLoader or TShock picked in the panel. Terraria is one of the lightest games to host, so all three work well. This guide covers each one.

## Which way should you host Terraria?

| | Host and Play | Dedicated server at home | Hosted server |
| --- | --- | --- | --- |
| Cost | Free | Free, plus electricity | From 4.99 USD a month, splittable, or paid with credits |
| World online when you log off | No | Only while that PC is on | Yes |
| Setup | A few clicks | Download, serverconfig.txt, one port | About 60 seconds after checkout |
| Updates after a patch | Automatic with the game | Download the new server by hand | **Update game** in the panel |
| Backups | The world lives only on your PC | Copy `.wld` files yourself | One click, 3 kept |

Host and Play is fine for a group that always plays together. As soon as someone wants to mine or fight bosses while you are offline, you need a dedicated server, at home or hosted. Every player needs their own copy of Terraria either way.

## How much RAM does a Terraria server need?

Very little for vanilla. Mods are what push it up:

| Your world | RAM | Our plan |
| --- | --- | --- |
| Vanilla, small or medium world, up to 8 players | 2 GB | Starter, 4.99 USD a month |
| Vanilla large world, or tModLoader with a few mods | 4 GB | Standard, 9.99 USD a month |
| Calamity, Thorium or a big mod list | 6 GB | Pro, 14.99 USD a month |

Our plans hold up to 8, 16 and 32 players. The game supports up to 255 in theory, but 8 to 16 is common. Almost any PC made in the last decade can run a vanilla server, including an old laptop, which makes Terraria a good game for a cheap always on home server. More in [how much RAM a game server needs](https://gamezservers.com/guides/how-much-ram-for-a-game-server).

## Option 1: Host a Terraria server with GamezServers

1. **Pick a plan** from the table above. Vanilla with a few friends? Starter is enough. Planning Calamity? Go for Pro. You can change plans later and the world comes with you. New customers get 50% off the first month.
2. **Split the bill if you like.** Choose **Split with friends** at checkout to share it between 2 and 10 people, each paying their own share by card with a 1 USD fee per share. The 4 GB plan split four ways is about 3.50 USD each. Your server starts as soon as you pay your share.
3. **Pay.** Pay by card, Apple Pay or Google Pay. The server shows **Setting up** for about a minute, then **Online**.
4. **Set up the world.** In the panel, pick the server type: **Vanilla**, **tModLoader** for mods like Calamity, or **TShock** for plugins, permissions and anti cheat on normal Terraria. Then set the **World name**, world size (Small, Medium or Large), **Difficulty** (Classic, Expert, Master or Journey) and an optional **Join password**. Leave the password empty for an open server. A **World seed** is only used when a new world is made.
5. **Copy the address and join.** The address at the top of the control panel looks like `123.45.67.89:7801`. Launch Terraria, or tModLoader for a modded server, on the same version as the server. Click **Multiplayer**, then **Join via IP**, pick your character, enter the IP (the part before the colon), then the port (the number after it) on the next screen, then the password.

Do not type the colon, and do not leave the port on 7777 unless your address actually ends in 7777. Billing is monthly with no contract, and you can cancel any time from the dashboard. See [billing and cancellation](https://gamezservers.com/docs/billing-and-cancellation) and the [control panel guide](https://gamezservers.com/docs/control-panel).

### Upload your own world

World size, difficulty and evil biome are fixed when a world is created, so the easiest way to get exactly what you want is to create it in your own game and upload it.

1. Find your `.wld` file in `Documents\My Games\Terraria\Worlds` on Windows, or `Documents\My Games\Terraria\tModLoader\Worlds` for tModLoader.
2. Click **Backup**, then **Stop** in the control panel.
3. In **Files**, upload the `.wld` file into `saves/Worlds` on a vanilla or tModLoader server, or the server folder on TShock.
4. Set **World name** in **Settings** to the file name without `.wld`, and start the server.

Characters are not part of the world. Each player keeps their own on their PC. Journey worlds only accept Journey characters, and the other difficulties do not accept Journey characters. The full walkthrough is in [how to upload a Terraria world to a server](https://gamezservers.com/guides/how-to-upload-a-terraria-world-to-a-server).

### Run it from the console

Terraria has no in game admin role. The server console is the admin tool, and on our servers it is the **Console** tab, with buttons for the common commands:

| Command | What it does |
| --- | --- |
| `password newpass` | Sets the server password. |
| `playing` | Lists who is online. Also the **List players** button. |
| `say message` | Messages everyone. Also the **Broadcast** button. |
| `kick name` / `ban name` | Removes a player. Bans are saved to `banlist.txt`. |
| `dawn`, `noon`, `dusk`, `midnight` | Changes the time. Also a button for each. |
| `save` | Saves the world. Also the **Save world** button. |
| `settle` | Settles all liquids. |
| `motd message` | Changes the message players see on joining. |

On TShock, the time and ban commands are `time noon` and `ban add name`, and players may need to `/register` and `/login` in chat. The owner gets full rights with the one time `/setup` code shown in the console on the first start. See [TShock commands for Terraria servers](https://gamezservers.com/guides/tshock-commands-for-terraria-servers).

## Option 2: Host a free Terraria dedicated server on your own PC

Re-Logic gives the dedicated server away. It runs on Windows, Linux and macOS and does not need a second copy of the game.

### Step 1: Download the server

Go to [terraria.org](https://terraria.org) and scroll to the footer for the **PC Dedicated Server** download. It is a zip named after the version, and it must match the version your players run. Extract it. Inside are separate folders for Windows, Linux and Mac. Copy the one for your system into a folder such as `C:\terraria-server` or `/home/terraria/server`.

If you own Terraria on Steam, the Windows server is already in your game folder as `TerrariaServer.exe`.

### Step 2: Start it once

**Windows:** double click `TerrariaServer.exe` or `start-server.bat`. The console walks you through choosing or creating a world, the player limit, the port, whether to try automatic port forwarding, and a password.

**Linux:** make the server executable and start it:

```
chmod +x TerrariaServer.bin.x86_64
./TerrariaServer.bin.x86_64
```

The same prompts appear. When the console shows the server is listening on the port, it is running. Type `exit` to save and stop it.

### Step 3: Set up serverconfig.txt

Answering the prompts every time gets old, so use a config file. The download includes an example `serverconfig.txt`. Each line is a `key=value` pair, and lines starting with `#` are comments:

- `world=`: the full path to the `.wld` world file to load.
- `autocreate=`: create a world if the file does not exist. `1` small, `2` medium, `3` large.
- `worldname=`: the name for an automatically created world.
- `difficulty=`: for new worlds. `0` classic, `1` expert, `2` master, `3` journey.
- `maxplayers=`: the player limit.
- `port=`: `7777` by default.
- `password=`: leave empty for no password.
- `motd=`: the message players see on joining.
- `worldpath=`: the folder where worlds are stored.
- `secure=`: `1` turns on extra cheat protection.
- `upnp=`: `1` tries to forward the port automatically on routers that allow it.

A minimal config:

```
world=C:\terraria-server\worlds\MyWorld.wld
autocreate=2
worldname=MyWorld
difficulty=1
maxplayers=8
port=7777
password=changeme
motd=Welcome to our world
```

Start the server with it:

```
TerrariaServer.exe -config serverconfig.txt
```

On Linux use `./TerrariaServer.bin.x86_64 -config serverconfig.txt`. On Windows you can put that command in `start-server.bat` so a double click does the rest. Every key is explained in [Terraria server config explained](https://gamezservers.com/guides/terraria-server-config-explained).

To use an existing world, copy its `.wld` file from `Documents\My Games\Terraria\Worlds` on Windows or `~/.local/share/Terraria/Worlds` on Linux into your server folder and point `world=` at it.

### Step 4: Open port 7777

Terraria uses one port: **7777 TCP**. Forward it to the server's local IP in your router and allow the server through Windows Defender Firewall or `ufw`. If `upnp=1` worked, the router may have done it already, but check. Our [port forwarding guide](https://gamezservers.com/guides/how-to-port-forward-a-game-server) covers the router side.

If your router's WAN IP is different from what a "what is my IP" site shows, your provider uses CGNAT and forwarded ports never reach you. See [how to tell if you are behind CGNAT](https://gamezservers.com/guides/how-to-tell-if-you-are-behind-cgnat) and [how to host a game server without port forwarding](https://gamezservers.com/guides/how-to-host-a-game-server-without-port-forwarding).

### Step 5: Let friends connect

1. Launch Terraria on the same version as the server.
2. Click **Multiplayer**, then **Join via IP**.
3. Pick a character, then enter your public IP address.
4. Enter the port, `7777`, and the password if you set one.

Players on your home network use the server PC's local IP instead. The world is only online while your PC is on and awake, so turn off sleep mode if friends play without you.

Useful console commands while it runs: `save` saves the world, `exit` saves and shuts down, `playing` lists players, `say <message>` broadcasts, `kick <player>` and `ban <player>` remove players, `dawn`, `noon`, `dusk` and `midnight` change the time, and `help` lists the rest.

## Option 3: Host and Play for free

1. Click **Multiplayer**, then **Host & Play**.
2. Pick your character and world, and choose **Friends Only** or **Invite Only**.
3. Friends join through **Multiplayer > Join via Steam**, or from your Steam invite.

The world only runs while you play. When you quit, everyone is disconnected, and the world lives only on your PC. [How to play Terraria with friends](https://gamezservers.com/guides/how-to-play-terraria-with-friends) covers Join via IP and other ways to play together.

## Can you get a hosted Terraria server for free?

Yes, with credits. Every GamezServers account gets a share link from the dashboard, and it earns credits:

- **5 cents for every person who clicks the link**, counted once a day per person.
- **10 USD in credits for every person who clicks the link and subscribes**, once per person.

Credits come off your bills automatically, and once they cover a server you can get it with credits alone and no card. They have no cash value outside GamezServers. The smallest Terraria server prepaid for 3 days is about 1.25 USD, so 25 clicks cover it, and about 100 cover a month of Starter. One person who subscribes through your link earns two months of Starter. See [how game server credits work](https://gamezservers.com/guides/how-game-server-credits-work) and [free game servers](https://gamezservers.com/free-game-servers).

## What are the catches with hosting for free?

- **The PC stays on.** A gaming desktop running all month can add 10 to 20 USD to a power bill. An old laptop or mini PC is much cheaper, and Terraria runs fine on one.
- **CGNAT.** If your provider uses CGNAT, port 7777 cannot be forwarded and friends will not connect.
- **Updates by hand.** After each Terraria patch you download the matching server, or friends see a version mismatch.
- **Backups.** Copy the `.wld` file somewhere safe before boss fights and updates. A corrupted world with no backup is gone.
- **Your home IP** is exposed to everyone who joins. See [is hosting a game server at home safe](https://gamezservers.com/guides/is-hosting-a-game-server-at-home-safe).

## How do you add mods to a Terraria server?

Vanilla Terraria has no mod support, so modded servers run **tModLoader**, the free official modding platform. Players join through tModLoader rather than regular Terraria, on the same tModLoader version, and it can download the server's mods for them when they connect. Big mods like Calamity use far more memory than vanilla, so give them 4 to 6 GB.

- **On our servers:** click **Backup**, switch the server type to tModLoader in the panel, upload your `.tmod` files to the `mods` folder, list them in `mods/enabled.json` and restart.
- **At home:** install tModLoader through Steam or from its GitHub releases, set up your mods by playing with them enabled first, then start the server with `start-tModLoaderServer.bat` on Windows or `./start-tModLoaderServer.sh` on Linux from the tModLoader folder. It uses the same `serverconfig.txt` format and the same port.

As of October 2026, vanilla Terraria is on 1.4.5 while stable tModLoader is still based on 1.4.4, so a world saved in vanilla 1.4.5 cannot be opened by tModLoader. See [when tModLoader updates to 1.4.5](https://gamezservers.com/guides/tmodloader-1-4-5-release-date) and [how to add mods to a Terraria server](https://gamezservers.com/guides/how-to-add-mods-to-a-terraria-server). For plugins on a vanilla client, see [how to install TShock on a Terraria server](https://gamezservers.com/guides/how-to-install-tshock-on-a-terraria-server).

## Backups, updates and upgrades

- **Backups:** on our servers, click **Backup** before every boss, event or mod change. Each server keeps 3, and **Save world** saves the world file in between. At home, copy the `.wld` file. Terraria also writes a `.bak` backup next to it.
- **Updates:** our servers do not update by themselves, so a patch never breaks your world mid session. After a game patch, press **Update game** in the panel. Worlds, mods and plugins stay. At home, download the matching server from terraria.org.
- **Sleep when empty:** our servers stop after 4 days with nobody online, with the world saved. Anyone with access starts it again in one click. Turn it off in **Settings** to stay online around the clock.
- **Upgrading:** big mod lists and lots of enemies on screen use more memory. Pick a bigger plan in **Settings**. The price is prorated and the new RAM applies after a restart.

## Common problems

- **Friends cannot connect but you can:** port 7777 TCP is not forwarded, the firewall blocks the server, or they are using your local IP instead of your public one. See [Terraria can't connect to server](https://gamezservers.com/guides/terraria-cant-connect-to-server).
- **"You are not using the same version as this server":** the server and players are on different versions. Download the matching server, or press **Update game** on ours. See [how to fix Terraria version mismatch](https://gamezservers.com/guides/terraria-server-version-mismatch).
- **The server asks the setup questions every time:** it was started without `-config serverconfig.txt`, or the `world=` path is wrong.
- **World lost after a crash:** stop the server with `exit` instead of closing the window, which saves first. Keep copies of the `.wld` file.
- **tModLoader players get kicked on join:** their mod versions differ from the server. Let tModLoader sync the mods, or update both sides.
- **Lag:** see [Terraria server lag fix](https://gamezservers.com/guides/terraria-server-lag-fix).

## FAQ

### Is the Terraria dedicated server free?

Yes. It is a free download from terraria.org for Windows, Linux and macOS, and Steam owners already have `TerrariaServer.exe` in the game folder.

### How much does it cost to host a Terraria server?

With us, from 4.99 USD a month for 2 GB, which suits vanilla with a few friends. The 4 GB plan is 9.99 USD. New customers get 50% off the first month, and you can split the cost with up to 10 people.

### What port does a Terraria server use?

TCP 7777 by default, set with `port=` in serverconfig.txt.

### Can friends play my Terraria world when I'm offline?

Only on a dedicated server. A Host and Play world goes offline when you quit.

### Can console or mobile players join?

PC players can always join. Re-Logic is adding crossplay with other platforms in stages, so console and mobile players can only join once their version of Terraria supports PC servers. See [Terraria crossplay on a dedicated server](https://gamezservers.com/guides/terraria-crossplay-dedicated-server).

### Does my character stay on the server?

No. Characters live on each player's PC. The server keeps the world: houses, chests, NPCs and boss progress.

### Can I run Calamity?

Yes. Run a tModLoader server, add Calamity and join through tModLoader. Calamity runs best on 4 to 6 GB.

### Can I run a modded Terraria server for free?

Yes. tModLoader is free and includes a server. Players join through tModLoader, which downloads the server's mods for them.

See [Terraria server hosting](https://gamezservers.com/games/terraria) to pick a plan and get your world online.
