News
Game
Guides
Downloads
Versions
/transfer
COMMANDS SERVER ADMIN SERVER · LEVEL 3 Added in 1.20.5

/transfer command in Minecraft

/transfer moves players from this server to another one without sending them back to the menu. Server networks use it to link a lobby to their game servers. It was added in 1.20.5 and needs operator level 3, so it is run from the console or by an operator.

Syntax

/transfer <hostname> [<port> [<players>]]

// Only on a dedicated server: the command does not exist in single player or in a world opened to LAN.

ArgumentExpectsWhat it does
hostnameTextquoted textAddress of the destination server, a domain like play.example.com or an IP address.
portoptionalWhole number1 to 65,535Port of the destination, from 1 to 65535; 25565 is used if you leave it out.
playersoptionalPlayer selectorone or severalPlayers to send, for example @a or Steve; without it, you transfer yourself.
All 3 forms
  • /transfer <hostname>
  • /transfer <hostname> <port>
  • /transfer <hostname> <port> <players>

Examples

Transfer just yourself

/transfer play.example.com

Sends you to play.example.com on the default port 25565.

Java 26.3

Transfer everyone to a port

/transfer play.example.com 25566 @a

Moves all online players to the server listening on port 25566.

Java 26.3
Build your command

Fill in the fields, then copy the command.

Command generator

How to use it

Give the address and, if needed, the port and the players. Without a port, 25565 is used; without players, you transfer yourself. The destination must accept transfers, otherwise players see This server does not accept transfers. On a vanilla server, this is the accept-transfers setting in server.properties.

Players arrive with the same account, so the destination applies its own /whitelist and bans as usual. Check who will be moved with /list before sending everyone. The players do not need to know the address themselves.

✓ Checked in Java Edition 26.3 · updated 2 November 2026

/transfer: FAQ

Why are players disconnected instead of transferred?

The destination refuses transfers or cannot be reached. Turn on accept-transfers on that server and check the address and port.

Can a command block run /transfer?

No. Command blocks run at level 2 and /transfer needs level 3. Use the console or an operator account.

How do I use /transfer?

On a server, as an operator or from the server console: /transfer <hostname> [<port> [<players>]]. It does not exist in single player.

Who can use /transfer?

Server operator, level 3. Only on a dedicated server: the command does not exist in single player or in a world opened to LAN.

Since when does /transfer exist?

It is in the official command tree since Java Edition 1.20.5.

Related commands