Skip to content
/SLASHPLAY

How to change the port of a Terraria server

Set port=7777 in serverconfig.txt or start with -port 7777. On SLASHPLAY the port is set for you: it's the number after the colon in your address.

port

The port the server listens on. Default 7777. Typed at the server console, port prints it.

port=<number>

Examples

port=7777

In serverconfig.txt.

-port 7777

As a launch option.

port

At the server console: print the port.

Arguments

numberRequired
Port number.

What it does

Players type the port after the address when they join. Change it only to run more than one server on one machine.

Good to know

  • SLASHPLAY sets the ports. Changing them here stops players from connecting. The port is the number after the colon in your server's address.

Run it on your server

On SLASHPLAY, Terraria's server can't take commands from the dashboard: the Console tab only shows what it prints. SLASHPLAY sets the world, the 8-player limit and the join password at each start, and the chat commands work for every player in game. New to this? Start a Terraria server first.

Your own
Terraria server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.