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.
| Game | Port | Kind | What it is for |
|---|---|---|---|
| Minecraft (Java) | 25565 | TCP/UDP per the wiki | The game (server-port) |
| Minecraft (Bedrock) | 19132 | not covered here | The game |
| Terraria | 7777 | TCP | The game (port in serverconfig.txt) |
| Rust | 28015 | UDP | The game (server.port) |
| Rust | one above the higher of the game and RCON ports, unless set | UDP | Query port (server.queryport), which must differ from the game port |
| Rust | 28016 | TCP | RCON (admin commands) |
| ARK: Survival Evolved | 7777 | UDP | The game |
| ARK: Survival Evolved | 7778 | UDP | "Peer" port, always the game port plus one |
| ARK: Survival Evolved | 27015 | UDP | Query port, for Steam's server browser |
| ARK: Survival Evolved | 27020 | TCP | RCON, optional |
| 7 Days to Die | 26900 | TCP and UDP | The game (ServerPort) |
| 7 Days to Die | 26901 to 26903 | UDP | Listed 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:
- On the router, a port forwarding rule sends outside traffic for that port to the server PC.
- 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):
- Minecraft Wiki: Setting up a Java Edition server: Minecraft Java port 25565, TCP/UDP
- Minecraft Wiki: server.properties: Bedrock default port 19132; server-port
- Terraria Wiki: Server: TCP port 7777; port setting
- Facepunch Rust documentation: Creating a server: 28015 UDP, query port, RCON 28016 TCP; only the game port at first
- ARK Official Community Wiki: Dedicated server setup: UDP 7777, 7778, 27015; TCP 27020
- 7 Days to Die Modding Wiki: Setting Up a Dedicated Server: 26900 and extra ports; marked Unverified, written for an older version
Our shop is closed while we rebuild it. If you would like an email when it opens, leave your address here.
More guides
What is a game server, and do you need one?
A game server explained in plain English: what it does, the three ways to share a world, and how to tell whether you need your own.
How to join a game server by its address
How to join a game server with an IP address and port, game by game: Minecraft, Terraria, Rust, ARK and 7 Days to Die, plus what to try when it will not connect.
How many slots and how much RAM does a game server need?
What slots and RAM mean, how to count the slots you need, and what the games' own documentation says about memory for Minecraft, Rust and ARK.
Host on your own PC or rent a server?
An honest comparison of hosting a game server at home and renting one, with port forwarding explained in plain words and when each one makes sense.