Skip to content
uqc

uqc / Guides / How to Make a Minecraft Server: Java PC & Hosting Setup

Server guide

How to make a Minecraft server: Java setup guide

Want one world your mates can keep coming back to? You can run a Minecraft server on your own PC or pay a host to keep it online. The PC route gives you control; managed hosting saves you looking after the machine. We cover both below.

This guide is for Java Edition. Bedrock players need a Bedrock server or a Java server deliberately configured for cross-play.

The quickest route for your group

If you want friends to play when your PC is off, choose managed hosting or a Realm. If you want to learn server administration and can keep a machine running, self-host. If everyone is in the same house for one session, start with LAN instead.

The quickest route for your group
Your situationStart hereThe trade-off
Friends want a shared world available without your PCManaged Java hostingRecurring bill; you still manage access and backups
You want to learn and control the machineOfficial Java server on your computerYou handle uptime, updates and network access
Everyone is on the same home networkOpen a world to LANThe host must keep the game open
You want Minecraft's own subscription serviceJava RealmsLess flexibility over server software

Before you follow either setup, write down your edition, game version, preferred software and who needs to join. Those four decisions prevent most avoidable setup detours.

Option one: set up a managed Java server

We recommend Pine first for readers who want a panel for everyday management rather than looking after a home server. Its version-selection and file-management tools make it possible to manage the world without maintaining the underlying computer yourself.

Links to hosting providers can earn UQC a referral fee at no extra cost to you.

See Pine's Minecraft plans

Use code DOOPA for 30% off your first month, then check the discount, eligible plan and renewal total in your order summary before paying. Do not assume the offer stacks with another promotion.

On a tight budget? Use our cheap Minecraft hosting guide to compare the ongoing bill and resource requirements.

Want to compare before deciding? Our Minecraft hosting comparison compares our main pick, Pine, with alternatives and practical trade-offs rather than a promise that one plan suits every world.

Prefer a video for the managed route? Watch our Minecraft server hosting guide on YouTube (youtube.com). It covers paid hosting, not a demonstration of the local PC setup below.

1. Pick the location, edition and software

Choose a location reasonably close to most of your players. Then choose Java Edition and agree on the game version before anyone installs a different one.

For a first unmodded world, start with Vanilla, the official Minecraft server software. Choose Paper when you specifically want supported server plugins. Paper is not a Fabric or Forge modpack server, and some gameplay behaviour differs from Vanilla.

Do not buy on RAM alone. Tell the host your intended version, simultaneous player count and whether you will use a particular modpack. Ask what an upgrade changes and whether your world is retained. “Unlimited slots” does not mean unlimited performance.

2. Open the panel and select your version

Open your purchased server in Pine's game panel. Use its version changer to select the server software and game release you agreed on. Avoid snapshots or previews for an ordinary shared world unless everyone deliberately wants an experimental build.

Follow the displayed installation prompts. Read any warning about reinstalling or replacing files before continuing. These steps are for a new server; if a world already exists, back it up first. Keep a downloaded copy of the original world and confirm the new server’s expected files before transferring it.

If the installer requests EULA acceptance, read Minecraft's End User License Agreement (minecraft.net) and accept only if you agree.

3. Start once, then configure your private world

Start the server and wait for startup to finish. Stop it cleanly before editing the generated configuration.

In the panel's settings editor or server.properties, set the difficulty, default game mode and player limit. Keep online-mode=true for an ordinary standalone server so player accounts are authenticated. Leave provider-assigned network settings alone.

Save the configuration and start the server again. For a friends-only Java server, use the console commands whitelist on and whitelist add PlayerName, replacing the example with each person's exact Java profile name. Console commands normally omit the leading slash used in game. Do not give everyone operator permissions simply to let them join.

If you make further configuration-file changes, stop, save and restart. If the panel offers a setting already, avoid changing the same setting in two places without checking which one takes priority.

4. Connect before inviting the whole group

Copy the full connection address from the panel, including a port if supplied. In Java Edition, open Multiplayer, choose Add Server, enter a label and paste the address. Save it and join.

Ask one friend to connect too. Confirm you are in the intended world and that both accounts are allowed in before sharing the details with everyone. Send the version alongside the address; that avoids a surprisingly common first-night problem.

5. Make a recovery point

Once the initial setup works, create a named backup. Check that it finishes, what it includes and where you can restore it. Keep a separate downloaded copy before upgrades or major world changes rather than relying entirely on one provider account.

Option two: run the official Java server locally

This avoids a hosting subscription, but uses your computer, electricity and internet connection. Keep enough memory available for the operating system and your own game as well as the server.

1. Install the right Java runtime

Use the runtime required by your chosen server release, not an old tutorial's default. Minecraft's official 26.1 release notes (minecraft.net) confirm that release introduced a Java 25 requirement. Older releases can have different requirements.

First, make a new folder called Minecraft Server somewhere easy to find. Keep the server files together in that folder.

Windows: open the folder in File Explorer, click the address bar, type powershell and press Enter. This opens a terminal in that folder.

Mac: open Terminal, type cd with a space after it, drag the server folder from Finder into the Terminal window, then press Enter.

Run java -version. The Java used by your Minecraft launcher is not necessarily the one available to terminal commands. If the command is missing or shows the wrong version, install the appropriate runtime from an official Java distributor and follow its operating-system instructions.

2. Download and launch the server

Open the official Minecraft Java server download page (minecraft.net). Save the downloaded server JAR in the Minecraft Server folder you created above. In the terminal you opened above, use its exact filename in this command:

java -Xmx2G -jar YOUR_SERVER_FILE.jar nogui

2G is an example maximum heap allocation, not a guarantee that 2GB suits your world. Replace it with an amount your computer can spare. If you see “Unable to access jarfile”, check the filename and make sure the terminal is in the folder containing the JAR. On Windows, turn on file-name extensions in Explorer if you cannot see the .jar ending.

The first launch generates files and asks you to accept the EULA. Read the agreement; if you accept, change eula=false to eula=true in eula.txt, save it and launch again.

Wait for startup, then enter stop in the console before changing the settings described above.

3. Connect locally before exposing anything online

On the server computer, connect using localhost and the configured port if needed. For another computer in the house, find the server machine's local IPv4 address. On Windows, run ipconfig and look under your active Wi-Fi or Ethernet adapter. On Mac, open System Settings → Network, select the active connection and look in its details for the IP address. Use the computer's address, not the router/default gateway.

For example, if the server computer is 192.168.1.25, your friend enters that in Java's Multiplayer → Add Server screen. Add :PORT if you changed the default server port. This private address works on your local network, not for friends elsewhere.

Allow the Java server through the local firewall for the network you use. LAN-only play does not need router port forwarding.

Friends elsewhere need a reachable connection. Direct home hosting commonly requires forwarding the server's TCP port, normally 25565, and allowing it through the firewall. Carrier-grade NAT, double NAT or restricted networks can prevent that approach. Follow your router and internet provider's instructions rather than disabling your firewall or placing the whole computer in a DMZ.

Test with a friend outside your home network before calling the remote setup finished. If you would rather skip the router work, use the managed route above.

Your first-session checklist

Before you send the address to the whole Discord, get one friend in and run through this list:

  1. Join with the agreed Java version and confirm the correct world loads.
  2. Ask one friend to join from their usual connection, not only another device on your home network.
  3. Check that allowed players can enter and that your whitelist is enabled if the world is private.
  4. Make a small change in the world, stop the server cleanly, restart and confirm the progress remains.
  5. Create a backup and locate the restore instructions before installing plugins, mods or a new game version.

Keep the address, version and backup location in one message for the group. Keep panel passwords and administrator credentials out of that message.

If it does not work

First separate startup trouble from connection trouble. If the server has not finished starting, changing your router will not fix it. If you can join locally but a friend cannot join remotely, establish which address and network path they are using.

If it does not work
What happensStart hereWhat not to do
The console cannot open the JARCheck the exact filename and terminal folderDownload random replacement server files
Java reports an unsupported class versionCheck the runtime required by that server releaseAssume the launcher and terminal use the same Java
A player is not whitelistedAdd their exact Java profile name in the server consoleGive everyone operator permissions
Local connection works, remote connection does notVerify the public connection details and network setupDisable the firewall or expose the whole computer
A new world appears instead of your old oneStop and check world selection and the transferred filesKeep playing or overwrite the only backup
  • Java error before startup: check the installed runtime and the JAR filename.
  • Version mismatch: use the game version the server supports.
  • Not whitelisted: check the Java profile name, not a Discord nickname.
  • You can join but friends cannot: check the address, port and external connectivity, not just RAM.
  • Wrong world: stop the server before changing or deleting anything. Check the selected world and your backup.

For edition-specific connection options, see how to play Minecraft with friends.

Quick answers

Can I make a Minecraft server for free?

You can run the official Java server software on your own computer without a hosting subscription. Your machine and internet connection still need to stay available, and you handle maintenance. That is different from a free hosted plan with its own limits.

Can Bedrock friends join this Java server?

Not by default. Java and Bedrock are separate editions. Cross-play requires a deliberately configured bridge and compatible setup; check console joining restrictions before choosing that route.

Does my PC need to stay on?

Yes, if it is running the server. The server process, machine and connection need to remain available while friends play. Managed hosting runs on the provider's machine instead.

Do my friends need operator permissions?

No. Add their Java profile names to the whitelist when you use one. Operator privileges are for administration, not ordinary access.

Should I use Vanilla, Paper or a modpack?

Use Vanilla for a straightforward official server. Consider Paper for supported plugins. A Fabric or Forge modpack needs matching server software and, usually, the intended client pack; do not treat those choices as interchangeable.

Disclosure

We may earn a commission if you buy through our links.