Сервер Minecraft с друзьями без лицензии 1.21: как создать

Пошаговая инструкция: как создать сервер Minecraft с друзьями без лицензии на 1.21. Пиратка, Hamachi, порты, моды и типичные ошибки подключения.

How to create a Minecraft server with friends without a license on 1.21

You can create a Minecraft server with friends without a license on 1.21 in about half an hour, provided you understand what you are actually launching: the official server jar, a local world with port forwarding, or a third-party launcher with ready-made infrastructure. Below are the working methods, the differences between them, and the pitfalls beginners hit most often.

First things first: "without a license" means players do not own a purchased Microsoft account. In that case the server runs in offline mode. This is not cracking or bypassing protection — it is simply a mode where the server does not verify account authenticity with Mojang services. The flip side: anyone who knows the address and port can join under someone else's nickname. For playing with friends, a whitelist solves this.

What you need for a server without a license on 1.21

The kit is minimal. A computer that will host the world (yours or a friend's with good internet), the right Java version, the server file, and a way to connect players over the network.

  • Java 21 — required by Minecraft 1.21 and newer. Old Java 8 and 17 will not work.
  • A server jar: vanilla from Mojang, Paper, or Fabric/Forge if you plan to use mods.
  • 2–4 GB of RAM allocated to the server. 2 GB is enough for four players on vanilla; 4 GB or more for a modpack.
  • A stable internet connection with an external IP, or a tunnel like Radmin VPN, Hamachi, or playit.gg.
  • Clients on your friends' side — any launcher that supports offline login on version 1.21.

If you want mods right away, it is easier not to assemble everything by hand but to download the FoxyGame launcher — it installs modpacks and mods in one click with no folder juggling. For vanilla play with friends, the official server file is enough.

How to create a Minecraft server with friends without a license on 1.21: step by step

Let's cover the most universal path — your own server on vanilla or Paper. It works both on a local network and over the internet.

  1. Download the 1.21 server jar from the official Mojang site or a Paper build from their download page. Put the file in a separate empty folder.
  2. Create a text file next to it and name it start.bat (Windows) or start.sh (Linux). Inside, one line: java -Xmx2G -jar server.jar nogui. For 4 GB, replace 2G with 4G.
  3. Run the file. The first start will fail with an EULA message — open the generated eula.txt and set eula=true. This is agreement with Mojang's terms; without it the server will not start.
  4. Run it again. A server.properties file will appear in the folder — open it in Notepad.
  5. Find the line online-mode=true and change it to online-mode=false. This is the no-license mode.
  6. In the same file set white-list=true and enforce-whitelist=true so outsiders cannot join. Add your friends' nicknames with the whitelist add nickname command in the server console.
  7. Save the file and restart the server. The console will show "Done" — the world is ready.

Then all that remains is to connect your friends. On a local network they join via 192.168.x.x:25565, where the x's are your computer's internal IP. Over the internet you need an external IP and port 25565 forwarded on the router, or a tunnel.

Port forwarding and tunnels

Port forwarding is set up in the router settings: the Port Forwarding section, external and internal port 25565, TCP protocol, address — your computer. The downside is that many ISPs give a dynamic external IP or hide you behind NAT, and then forwarding will not work.

The alternative is a tunnel. Radmin VPN and Hamachi create a virtual local network: all participants install the program, join one room, and see the server via the assigned virtual IP. playit.gg works differently — it gives a public address like something.playit.gg, and friends need nothing installed except the game client.

Versions and mods: what to keep in mind on 1.21

The client and server must match in version. If the server is on 1.21.4 and a friend joins with 1.21.8, they will be rejected. This is especially true for modded setups: Fabric mods on the server and client must be identical, otherwise you get desync and crashes.

Plenty of content mods are already out for 1.21 that install on both server and client. For example, you can download Spears Reimagined — transform spears in Minecraft for versions 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5, and 1.21.4 — the mod has been downloaded 4674 times and adds spears with new combat mechanics that fit co-op play well. Install it on the server and on your friends' clients at the same time.

If you do not want to manually sync mod versions across five people, use a whole modpack. The FoxyGame launcher installs a modpack with one button and keeps versions in order. Ready-made servers and their lists are in the Minecraft servers section — you can also see which configurations handle the load.

Common mistakes when creating a server without a license

  • Forgot online-mode=false. Licensed friends join, everyone else gets "Failed to verify username". Check the line in server.properties.
  • Wrong Java. 1.21 needs Java 21. With Java 17 the server crashes right after startup.
  • Not enough memory. A modpack on 2 GB will lag and crash with java.lang.OutOfMemoryError. Allocate 4 GB or more.
  • Port is closed. Friends from the internet cannot connect, but from the LAN they can. That means forwarding is not set up or your ISP hides you behind NAT.
  • Open server without a whitelist. In offline mode anyone can join under a friend's or admin's nickname. A whitelist is mandatory.
  • Different mod versions. Server on Fabric 0.16, client on 0.15 — the connection drops. Match everything, down to the loader version.

Frequently asked questions

Can you play with friends without a license on an official Mojang server?

No. Official Realms servers and servers with online-mode=true verify accounts and do not let pirated clients in. You need your own server with online-mode=false or a third-party host that allows this mode.

Which hosting should you choose for a server without a license on 1.21?

Any host where you can disable online-mode in the panel and set the required Java version. Free tiers usually give 1–2 GB of RAM — enough for vanilla with 3–5 people, but not for a modpack.

Why can't my friends connect to my server?

Three common causes: mismatched game versions, port 25565 not forwarded, or your ISP using NAT. Start by checking versions, then try a tunnel like Radmin VPN — it works around the external IP problem.

Do you need a whitelist if you only play with friends?

Yes, absolutely. In offline mode the server cannot tell who the real owner of a nickname is. Without a whitelist, an outsider can join under a friend's nickname, take items, or pose as an admin.

How much RAM should you allocate to a 1.21 server?

2 GB is enough for vanilla with 4–5 players. For a modpack or server-side shaders, 4 GB minimum, and 6–8 GB is better if more than ten people are online.