---
title: Configuring Your Terraria Server
description: Learn how to configure your Terraria server hosted with Nodecraft using the serverconfig.txt file.
source: "https://nodecraft.com/support/games/terraria/configuring-your-terraria-server-serverconfig-txt"
image: "https://dynamic-assets.nodecraft.com/signedurl/w7vokBAexMnVlnMZ1Q/image.jpg?modifications=W3sibmFtZSI6ImdhbWVfYmciLCJpbWFnZV91cmwiOiJodHRwczovL2Ntcy1hLm5vZGVjcmFmdC5jb20vZi8xMzM5MzIvMjAwMHg1NTAvOGIwZjdhNWNjMC90ZXJyYXJpYS1sYW5kaW5nLXBhZ2UtMS0yLTAucG5nL20vIn0seyJuYW1lIjoiZ2FtZV9sb2dvIiwiaW1hZ2VfdXJsIjoiaHR0cHM6Ly9jbXMtYS5ub2RlY3JhZnQuY29tL2YvMTMzOTMyLzM3NXgxNTAvOGM1NTVhZWQwZi9sb2dvLnBuZy9tLyJ9LHsibmFtZSI6ImN0YV90ZXh0IiwidGV4dCI6IkNyZWF0ZSB5b3VyIG93biBzZXJ2ZXIhIn0seyJuYW1lIjoidGV4dCIsInRleHQiOiJDb25maWd1cmluZyBZb3VyIFRlcnJhcmlhIFNlcnZlciJ9XQ&s=efd459ae217ead9f2adee407fea5e5a367111d941a9ee499488e3ae36732ba4a"
published: "2023-02-23T18:17:35.878Z"
updated: "2024-09-23T21:33:00.000Z"
---

# Configuring Your Terraria Server

Learn how to configure your Terraria server hosted with Nodecraft using the serverconfig.txt file.

One of the primary methods of configuring a Terraria server is using a config file called `serverconfig.txt`.

The Game Settings tab in the Nodecraft Pro panel will write directly to this file.

![A view of the Game Settings tab for Terraria within Nodecraft Pro](https://cms-a.nodecraft.com/f/133932/1080x713/7be086e367/game-settings.png/m/1000x0/smart)

You also can manually edit this file within the Server Files tab, if that is your preference.

## ![A view of Nodecraft Pro's file explorer for Terraria highlighting the serverconfig.txt file](https://cms-a.nodecraft.com/f/133932/1899x787/6112282d75/serverconfigtxt-edit.png/m/)

## Configuring Your Server

The following is a list of the current settings the game allows as of the time of writing this article. You can always reference the [Terraria Wiki](https://terraria.fandom.com/wiki/Server) for further information.

`world=C:\Users\Defaults\My Documents\My Games\Terraria\Worlds\world1.wld` - Loads a world and automatically starts the server.

`autocreate=3` - Creates a new world if none is found.  
World size is specified as:  
1 (small)  
2 (medium)  
and 3 (large)

`seed=AwesomeSeed` - Sets the world seed when using autocreate.

`worldname=World` - Sets the name of the world when using autocreate.

`difficulty=0` - Sets world difficulty when using -autocreate.  
Options:  
0 (normal)  
1 (expert)  
2 (master)  
3 (journey).

`maxplayers=8` - Sets the max number of players allowed on a server.  
The value must be between 1 and 255.

`port=7777` - Set the port number.

`password=p@55w0rd*` - Set the server password.

`motd=Please don’t cut the purple trees!` - Set the message of the day.

`worldpath=C:\Users\Defaults\My Documents\My Games\Terraria\Worlds\` - Sets the folder where world files will be stored.

`banlist=banlist.txt` - The location of the banlist file.  
Defaults to "banlist.txt" in the working directory.

`secure=1` - Adds additional cheat protection.

`language` - Sets the server language from its language code.  
Available codes:

- `en-US` = English
- `de-DE` = German
- `it-IT` = Italian
- `fr-FR` = French
- `es-ES` = Spanish
- `ru-RU` = Russian
- `zh-Hans` = Chinese
- `pt-BR` = Portuguese
- `pl-PL` = Polish

`upnp=1` - Automatically forward ports with uPNP.

`npcstream=60` - Reduces enemy skipping but increases bandwidth usage. The lower the number, the less skipping will happen, but more data is sent.  
0 is off.

`priority=1` - Default system priority.  
0: Realtime  
1: High  
2: Above Normal  
3: Normal  
4: Below Normal  
5: Idle.

**Journey Mode power permissions for every individual power.**   
0: Locked for everyone  
1: Can only be changed by the host  
2: Can be changed by everyone.

`journeypermission_time_setfrozen=2`

`journeypermission_time_setdawn=2`

`journeypermission_time_setnoon=2`

`journeypermission_time_setdusk=2`

`journeypermission_time_setmidnight=2`

`journeypermission_godmode=2`

`journeypermission_wind_setstrength=2`

`journeypermission_rain_setstrength=2`

`journeypermission_time_setspeed=2`

`journeypermission_rain_setfrozen=2`

`journeypermission_wind_setfrozen=2`

`journeypermission_increaseplacementrange=2`

`journeypermission_setdifficulty=2`

`journeypermission_biomespread_setfrozen=2`

`journeypermission_setspawnrate=2`

## Disabling Settings

If you ever wish for the server to ignore a specific setting, you can add a comment character (this is an overall coding term) at the beginning of each line, and the server will ignore that line. For Terraria, it uses the number sign `#`.

Here’s a screenshot of an example file with a mixture of commented-out lines, and also some active. It’s pretty easy to tell which is which within the Nodecraft Pro, as the commented-out lines are greyed out.

![A view of a raw serverconfig.txt file for Terraria within Nodecraft Pro](https://cms-a.nodecraft.com/f/133932/1897x878/f07352fa36/raw-serverconfigtxt.png/m/1000x0/smart)
