GameCP Logo
DescoperăLansează Acum
GameCP Logo
GameCP

Platforma de management a serverelor de joc de nouă generație. Creată pentru performanță, securitate și ușurință în utilizare.

Produs

  • Caracteristici
  • Integrări
  • App Store
  • Prețuri
  • Dezvoltare personalizată
  • Compară Panouri

Resurse

  • Documentație
  • Referință API
  • Program de Recomandare
  • Suport
  • Stare Sistem

Companie

  • Despre
  • Contact

© 2026 GameCP. Toate drepturile rezervate.

Politica de confidențialitateTermeni de utilizare
Terraria gameplay

Host a Terraria Dedicated Server

Dig, fight, explore, build! Nothing is impossible in this action-packed adventure game.

Skip the Setup — Deploy Nowor read the full guide below
RequirementsSetup GuideInstallation

Hardware Requirements

Here's what you need to run a Terraria dedicated server.

Economy

Small server, 1-4 players

CPU1 core
RAM1 GB
Storage2 GB

Standard

Medium server, 4-8 players

CPU1.5 cores
RAM2 GB
Storage2 GB

Pro

Large server, 8-16 players

CPU2.5 cores
RAM3 GB
Storage2 GB

Start hosting from your own computer

Run a Terraria server on your desktop, laptop, VPS, or dedicated machine — GameCP automates Docker setup, resource allocation, and Terraria configuration instantly. Automatic port forwarding means your friends can connect without touching your router. Start local, scale to a VPS when you're ready.

Get Started FreeNo credit card required

Setup in 4 Steps

Skip the manual installation, port forwarding, and configuration. Install on your own computer and start hosting instantly.

Step 01

Create a GameCP Account

Sign up for free at gamecp.com. No credit card required. Your dashboard is ready in seconds.

GameCP gives you a full control panel with Docker containerization, file management, automatic port forwarding, and automatic updates — all built in.

Step 02

Connect Your Hardware

Install GameCP on your own desktop, laptop, VPS, or dedicated machine. One-line install — no SSH expertise needed.

GameCP installs Docker, configures networking, and sets up automatic port forwarding so your friends can connect instantly. Start hosting from your own PC and scale to a VPS later. Supports Windows, macOS, and Linux.

Step 03

Deploy Terraria

Select "Terraria" from the template library and hit deploy. GameCP handles installation, ports, startup commands, and all configuration automatically.

Includes pre-configured serverconfig.txt. Uses the yolks:debian image. ~2 GB storage.

Step 04

Start Playing

Hit start and share your server address. Automatic port forwarding handles the rest — no router config needed.

GameCP monitors your server health and provides live logs from your browser. Your friends connect using the address GameCP gives you.

The Manual Way vs. GameCP

Manual Setup

  • ✗ Configure 1+ firewall ports and router settings
  • ✗ Write systemd service files
  • ✗ SSH into server to edit configs
  • ✗ Requires a VPS or dedicated server
  • ✗ 30-60 minutes if experienced

With GameCP

  • Automatic port forwarding — no router config
  • Host from your own PC, VPS, or dedicated server
  • Docker container with auto-restart
  • Visual config editor in browser
  • Under 5 minutes total

Under the Hood

The full manual process to host a Terraria dedicated server on a VPS. Or install GameCP on your own computer and skip all of this.

Step 1

Configure & Prepare

Set your server settings, then install Docker, and pull the Terraria container image.

Server ConfigurationEdit values to update all commands
terminal
# Update system and install Docker
sudo apt update && sudo apt install -y docker.io
sudo systemctl enable --now docker

# Create game server directory
sudo mkdir -p /opt/gameserver

# Server configuration
export MAX_PLAYERS="8"
export SERVER_MOTD="Welcome!"
export WORLD_NAME="world"
export WORLD_SIZE="1"
export WORLD_DIFFICULTY="3"
export NPCSTREAM="0"
export TERRARIA_VERSION="latest"

# Pull the container image
docker pull ghcr.io/ptero-eggs/yolks:debian
Step 2

Run the Installation Script

Terraria uses a custom install script to download and configure the server files.

Installation Script
#!/bin/bash
# Vanilla Installation Script
#
# Server Files: /opt/gameserver
## install packages to get version and download links
apt update
apt install -y curl wget file unzip jq

DOWNLOAD_LINK=invalid

mkdir -p /opt/gameserver/
cd /opt/gameserver/

if [ "${TERRARIA_VERSION}" == "latest" ] || [ "${TERRARIA_VERSION}" == "" ] ; then
    V=$(curl -sSL https://terraria.org/api/get/dedicated-servers-names | jq -r .[] | head -1)
    DOWNLOAD_LINK="https://terraria.org/api/download/pc-dedicated-server/${V}"
else
    CLEAN_VERSION=$(echo ${TERRARIA_VERSION} | sed 's/\.//g')
    echo -e "Downloading terraria server files"
    DOWNLOAD_LINK=$(curl -sSL https://terraria.wiki.gg/wiki/Server#Downloads | grep '>Terraria Server ' | grep -Eoi '<a [^>]+>' | grep -Eo 'href=\"[^\\\"]+\"' | grep -Eo '(http|https):\/\/[^\"]+' | grep "${CLEAN_VERSION}" | cut -d'?' -f1)
fi 

## this is a simple script to validate a download url actaully exists
echo ${DOWNLOAD_LINK}

if [ ! -z "${DOWNLOAD_LINK}" ]; then 
    if curl --output /dev/null --silent --head --fail ${DOWNLOAD_LINK}; then
        echo -e "link is valid."
    else        
        echo -e "link is invalid closing out"
        exit 2
    fi
fi

CLEAN_VERSION=$(echo ${DOWNLOAD_LINK##*/} | cut -d'-' -f3 | cut -d'.' -f1)


echo -e "running 'curl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*/}'" 
curl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*/}

echo -e "Unpacking server files"
unzip ${DOWNLOAD_LINK##*/}

echo -e ""
cp -R ${CLEAN_VERSION}/Linux/* ./
chmod +x TerrariaServer.bin.x86_64

echo -e "Cleaning up extra files."
rm -rf ${CLEAN_VERSION}

echo -e "Generating config file"
cat <<EOF > serverconfig.txt
worldpath=/opt/gameserver/saves/Worlds
worldname=default
world=/opt/gameserver/saves/Worlds/default.wld
difficulty=3
autocreate=1
port=7777
maxplayers=8
EOF

mkdir -p /opt/gameserver/saves/Worlds

echo -e "Install complete"
Step 3

Open Firewall Ports

Terraria requires 1 port to be open for game traffic and queries.

terminal
sudo ufw allow 7777/tcp
7777/TCP(PORT)
Step 4

Launch the Server

Start the Terraria server using the configuration from Step 1.

terminal
docker run -d \
  --name terraria-server \
  -p 7777:7777/tcp \
  -e MAX_PLAYERS="8" \
  -e SERVER_MOTD="Welcome!" \
  -e WORLD_NAME="world" \
  -e WORLD_SIZE="1" \
  -e WORLD_DIFFICULTY="3" \
  -e NPCSTREAM="0" \
  -e TERRARIA_VERSION="latest" \
  -v /opt/gameserver:/opt/gameserver \
  -w /opt/gameserver \
  ghcr.io/ptero-eggs/yolks:debian \
  ./TerrariaServer.bin.x86_64 -config serverconfig.txt

Or skip all of this

GameCP automates every step above: Docker, port forwarding, startup, and config. Install on your own PC and deploy a Terraria server in under 5 minutes.

Deploy with GameCP

More Hosting Guides

Explore step-by-step setup guides for other popular games supported by GameCP.

FiveM

FiveM

Sandbox

Garry's Mod

Garry's Mod

Sandbox

Hytale

Hytale

Sandbox

Minecraft - Bedrock

Minecraft - Bedrock

Sandbox

Minecraft - Fabric

Minecraft - Fabric

Sandbox

Minecraft - Forge

Minecraft - Forge

Sandbox

Minecraft - Java Edition

Minecraft - Java Edition

Sandbox

Minecraft - NeoForge

Minecraft - NeoForge

Sandbox

View all supported games

Ready to Host Your Terraria Server?

Install GameCP on your own computer and start hosting in minutes. Automatic port forwarding, zero config — your friends connect instantly.

Deploy NowView Pricing

No credit card required · Free tier available · Install local, scale later

Host Terraria from your own computer. Automatic port forwarding. Zero config.

No credit card requiredDeploy Free