Our shop is closed while we rebuild it. Get an email when it opens
  1. Home
  2. Guides
  3. Game server ports explained

Game server ports explained

A port is the "flat number" that finds the game on a computer. Defaults: Minecraft Java 25565, Terraria 7777, Rust 28015, ARK 7777 and 7778 (plus 27015), 7 Days to Die 26900. Open the game port first.

What a port is

An IP address finds the computer. A port finds the program on it. Think of a block of flats: the IP address is the street address, and the port is the flat number. A computer can run a game server, a website and more at once, so each gets its own number.

Each game has a default port. Admins can change it, and when they do, players have to type the new number after the address, as in how to join a game server.

TCP and UDP in one paragraph

Ports come in two kinds, TCP and UDP. They are two ways of sending data across the internet, and games use one, the other or both. You do not need to know how they differ. You only need to open the right kind, because a router rule for TCP does nothing for UDP traffic. If a guide says "TCP/UDP" or "both", open both.

The ports each game uses

These come from each game's own documentation. They are the defaults. Servers can be set to use others.

GamePortKindWhat it is for
Minecraft (Java)25565TCP/UDP per the wikiThe game (server-port)
Minecraft (Bedrock)19132not covered hereThe game
Terraria7777TCPThe game (port in serverconfig.txt)
Rust28015UDPThe game (server.port)
Rustone above the higher of the game and RCON ports, unless setUDPQuery port (server.queryport), which must differ from the game port
Rust28016TCPRCON (admin commands)
ARK: Survival Evolved7777UDPThe game
ARK: Survival Evolved7778UDP"Peer" port, always the game port plus one
ARK: Survival Evolved27015UDPQuery port, for Steam's server browser
ARK: Survival Evolved27020TCPRCON, optional
7 Days to Die26900TCP and UDPThe game (ServerPort)
7 Days to Die26901 to 26903UDPListed by the modding wiki as extra ports to open

A note on the last two rows: the modding wiki we used for 7 Days to Die is marked "Unverified" and was written for an older version of the game. The Valve Developer Community wiki and community guides we saw list slightly different extra ports. Check what your own server version needs before you open a range.

What "open" means

Opening a port has two parts when your server runs on your own PC:

  1. On the router, a port forwarding rule sends outside traffic for that port to the server PC.
  2. On the PC, the firewall has to allow the program or port.

Our guide on hosting on your own PC or renting walks through both. On a rented server, the host has done this already, and you only need the address and port.

Which ones do I really need?

  • Open the game port first. Rust's documentation says to play, you only need the server port open at first.
  • Query ports are for the server list. If your friends join by typing the address, you may not need to worry about it. ARK's Steam favourites route does use it.
  • RCON ports are for admin tools and are best left shut. See RCON, whitelist and admin rights.

Two things that confuse people

  • Opening a port for the wrong game. If you run two servers on one PC, they cannot share a port. Give the second one a different number, and tell friends.
  • Testing from inside the house. Joining with the home-network address proves the server runs. It does not prove outsiders can get in. Ask a friend who is somewhere else to try.

Game pages that go with this guide

Quick answers

What is the default Minecraft server port?

The Java Edition server listens on port 25565 by default. Bedrock Edition uses 19132.

What ports does a Terraria server use?

Terraria uses TCP port 7777 by default, and you can change it with the port setting in serverconfig.txt.

Sources (read 2 December 2026):

Want a server of your own one day?

Our shop is closed while we rebuild it. If you would like an email when it opens, leave your address here.

More guides

All guides