The quickest way to host a Minecraft server on a gaming PC is to download the official server file from Mojang, run it with a recent Java runtime, accept the EULA, set the world options in server.properties, and then let friends connect over your local network or through a forwarded port. Everything below walks through that sequence for Java Edition, notes where Bedrock Edition differs, and flags the mistakes that most often leave a server unreachable or laggy.
Short Answer: The Seven Steps
- Pick the edition: Java Edition server for Java players, Bedrock Dedicated Server for console, phone and Windows Bedrock players.
- Install the Java runtime the maker’s release notes require for your Minecraft version (recent releases need a modern long-term-support Java build).
- Download the server jar from the official Minecraft site and put it in its own empty folder.
- Start it once, open the generated eula.txt, and change the EULA line to true.
- Edit server.properties (game mode, difficulty, player cap, view distance, whitelist).
- Start it again with a launch command that assigns memory, in a window that stays open.
- Share your address: local IP for the same home network, or your public IP plus a forwarded port for friends elsewhere.
Is a Gaming PC a Good Server Host?
A gaming PC has more than enough hardware for a small private server. The part that matters most is single-thread CPU speed, because the main game loop of a Minecraft server runs largely on one thread. Memory matters too, but less than many guides suggest for a handful of players. The graphics card is irrelevant to the server process itself, since a dedicated server draws no graphics.
The real trade-off is that the PC has to stay on and online while friends play. If you also launch the game on that machine, the client and server share CPU time and memory, so frame rate and server tick rate can both suffer on a modest processor. Many players solve this by running the server on a spare or secondary machine and keeping the main rig for playing.
| Host option | Best for | Main limit |
|---|---|---|
| Gaming PC, local only | LAN sessions with people in the same home | Others cannot join from outside |
| Gaming PC with port forwarding | Small friend group, full control of mods and settings | Router setup, public IP exposure, PC must stay on |
| Gaming PC with a tunneling service | Networks where forwarding is impossible | Depends on a third-party service |
| Rented game host | Always-on, many players | Ongoing fee, less low-level control |
Step 1: Choose Java or Bedrock
The two editions use different server software and cannot be swapped freely. Java Edition servers are the base for plugins and mods and are the usual choice for PC players. Bedrock Dedicated Server is the choice when your group plays on consoles or phones. Mojang publishes both downloads on its official site. A cross-play setup that mixes editions needs extra software, and that is beyond a basic first server.
Step 2: Install Java (Java Edition)
The Java server runs on a Java runtime, and Mojang raises the minimum Java version from time to time. Recent Minecraft releases require a modern long-term-support Java release rather than the old Java 8. Read the release notes or the server download page for your target version to see which Java it needs, then install a 64-bit build. After installing, open a terminal and run java -version to see what the system uses. Mismatched Java is among the most frequent reasons a jar refuses to start, usually with an error mentioning an unsupported class file version.
Step 3: Download the Server and Set Up a Folder
Create a dedicated folder such as MinecraftServer on a drive with free space. Place the official server jar inside. The server writes the world, logs and configuration files next to the jar, so mixing it into a crowded folder makes backups confusing later. Use the official download rather than random mirrors, since a jar from an unknown source can carry unwanted code.
Step 4: First Launch and the EULA
Open a terminal in that folder and run a command in this form:
java -Xms2G -Xmx2G -jar server.jar nogui
The first run stops quickly and creates eula.txt. Open it, read the agreement, and change the line from false to true if you accept it. The Xms and Xmx flags set starting and maximum memory. Two to four gigabytes is a common range for a small group on a vanilla world, with heavier modpacks needing more. Giving the process far more than it uses does not make it faster and can lengthen garbage-collection pauses. The nogui flag skips the small status window.
Step 5: Tune server.properties
After the second launch the server builds a world and a server.properties file appears. Edit it with a plain text editor while the server is stopped.
| Setting | What it does | Practical note |
|---|---|---|
| server-port | The port players connect to | The Java default is 25565 |
| max-players | Player cap | Keep it near the real group size |
| view-distance | Chunks sent to each player | Lowering it reduces CPU and network load |
| simulation-distance | Chunks that actively tick | Lowering it helps with lag on busy worlds |
| white-list | Only approved names may join | Strongly advisable on a public address |
| online-mode | Checks accounts against Mojang | Leave on unless you know the risks |
| gamemode, difficulty | Defaults for new players | Change as you like |
Once the server is running you can type commands in its console, for example whitelist add PlayerName and op PlayerName. Operators have broad powers, so grant that status sparingly.
Step 6: Let Friends Connect
Same home network
Players on the same network enter the host PC’s local IP address in the multiplayer menu. Find it with ipconfig on Windows. If Windows Defender Firewall asks about Java, allow it on private networks.
Friends outside your home
Log into the router, reserve a fixed local address for the host PC, and forward the TCP port 25565 (or whichever port you chose) to that address. Friends then enter your public IP address. Because a home public address can change, some people use a dynamic DNS name instead. Some internet providers place customers behind carrier-grade NAT, which makes forwarding impossible. In that case a tunneling service or a rented host is the realistic route. Contact your provider if you are unsure which situation applies to you.
Bedrock Dedicated Server listens on a different default port, so follow the documentation that comes with that download rather than reusing Java settings.
Step 7: Keep It Running and Backed Up
- Stop the server with the
stopcommand rather than closing the window, so the world saves cleanly. - Copy the world folder to another drive on a regular schedule.
- Sleep and hibernate settings in Windows will cut the server off, so adjust the power plan for the session.
- Apply Minecraft updates deliberately: players on a newer client cannot join an older server until you update the jar.
Common Mistakes
| Symptom | Likely cause | Fix |
|---|---|---|
| Jar closes immediately | EULA still false, or wrong Java version | Edit eula.txt; install the Java release the maker lists |
| Friends see connection timed out | Port not forwarded, firewall block, or CGNAT | Forward TCP 25565, allow Java through the firewall, ask the provider about CGNAT |
| Works on LAN, not outside | Router forwarding points to the wrong local IP | Reserve a fixed local address and redo the rule |
| Rubber-banding and lag | High view distance, too many players, PC busy with other tasks | Lower distances, close other heavy programs |
| Out of memory crash | Memory cap too low for mods | Raise Xmx moderately and reduce loaded chunks |
| Strangers joining | No whitelist on an exposed port | Turn on the whitelist |
Optimized Server Software
Many hosts use community server builds such as Paper, which reviewers and community documentation describe as a performance-focused fork of the vanilla server with plugin support. Fabric and Forge are the common routes for mods. These add features and sometimes lower CPU use, but they are separate projects with their own install notes, so start with the vanilla jar if this is your first server and move over later once the basics work.
Security Notes
Opening a port to the internet exposes a service on your home network. Keep Java and the server software updated, use the whitelist, avoid reusing passwords from other accounts for any admin panel, and do not forward ports you do not need. If your router offers a separate guest or isolated network, a spare machine on it limits the damage should something go wrong.
Frequently Asked Questions
How much RAM do I need to host a Minecraft server?
For a small vanilla group, two to four gigabytes assigned to the server is a common starting range. Modpacks and large player counts need more. Leave enough memory free for Windows and any game you run alongside it.
Can I play on the same PC that hosts the server?
Yes, and the host connects through localhost. Both programs compete for CPU and memory, so a mid-range or better processor with ample RAM handles it more comfortably than a low-end chip.
Do I need to pay to host a server?
No. The Java server software is free from Mojang, and hosting at home costs only electricity and your internet connection. A rented host is optional and mainly buys uptime and not needing to leave your PC on.
Why can my friends not join even though I forwarded the port?
The usual causes are a firewall block, a rule pointing at the wrong local address, a server that is not running, or an internet provider using carrier-grade NAT. Work through them in that order, and contact your provider if forwarding is not allowed on your plan.
Is it safe to share my IP address with friends?
Sharing it with people you trust is common practice, but it does reveal your general location and connects them to your router. Use the whitelist, and consider a tunneling service or a rented host if you would rather not give out your home address.
Does the graphics card affect server performance?
Not directly, because the server process does not render graphics. Processor speed, memory and network quality decide how smooth the server feels.
Related guides
More from Amazon
Programs that pair well with the guide above. Offers and eligibility are set by Amazon and may change.
Free shipping on eligible items, Prime Video and more. Eligible new members can start with a free trial.
Start a Prime free trialAd-free music streaming. Eligible new subscribers can start with a free trial.
Try Music Unlimited freeA Prime membership for ages 18-24 with a trial period. Eligibility is set by Amazon.
See Prime for Young AdultsAudiobooks and podcasts to listen to on the go. Eligible new members can start with a free trial.
Try Audible freeAs an Amazon Associate we earn from qualifying purchases.