How to make a Minecraft server for you and your friends

Getting started · updated 28 November 2026

A small server is enough to play with friends. What matters is that only your people can get in and that joining is easy.

1. The plan

For 2-10 people on survival, a plan with 2-4 GB of RAM is enough. If you want mods, take more, see how much RAM you need. You can also try a free test server first.

You can set the number of slots with max-players in server.properties.

2. An easy address

Set up a free address in the Subdomain tab. Your friends type it in the game under Multiplayer > Add Server, with no IP and no port (how to join).

3. Only let your friends in

Turn on the whitelist and add your friends. Type in the panel console:

whitelist on
whitelist add FriendsName

Details in the whitelist guide.

4. Let a friend help run the server

If a friend should help manage the server, do not give them your password. Add them in the Users tab with only the permissions they need.

5. Settings friends usually want

  • gamerule keep_inventory true - nobody loses their items on death,
  • gamerule players_sleeping_percentage 1 - one person sleeping skips the night (gamerules, the names differ on versions before 1.21.11),
  • difficulty normal - the difficulty.

Frequently asked questions

My friend plays Minecraft on a phone. Can they join?

Yes. With GeyserMC, phone and console players can join a Java server.

Do my friends need to own the game?

By default, yes. If someone does not, you can switch to offline mode, but then you really need password login as well.