PDF download Download Article PDF download Download Article

This wikiHow teaches you how to create and host your own Minecraft server on a Windows or Mac computer. If you want to create a server in Minecraft PE , you'll need to pay for a Realms subscription.

Part 1
Part 1 of 5:

Preparing Your Router

PDF download Download Article
  1. Open your router's web page . In order to set a static (non-changing) address for your computer and forward the port used for your Minecraft server, you'll need to use your router's page. You can access it by entering your router's address into a browser.
    • Since virtually all router models have unique pages, you may want to check your router's manual or online documentation for specific instructions on assigning addresses and forwarding ports.
  2. If asked to log in with a username and/or password, enter the appropriate credentials to log into your router's page.
    • If you've never set these credentials but are asked for them anyway, check your router's manual for the stock username and password.
    Advertisement
  3. Using a static IP address for your computer ensures that your computer won't have a new address assigned to it at any point, thus ensuring that you won't have to change your server's information or port forwarding down the line:
    • Find your router's list of connected items.
    • Select your computer.
    • Change your computer's number if necessary.
  4. Click the Save or Apply button, then wait for your router to finish rebooting if necessary.
    • Since your router will assign a new address to your computer when it reboots and it will usually reboot after setting up port forwarding, assigning a static IP address is crucial.
  5. You'll usually find this in the Advanced settings section, but look around your router page's settings if you don't find it there.
    • Again, router pages differ from one another, so you might want to check your router's documentation rather than looking around until you find the "Port Forwarding" section.
  6. On some routers, you'll just type Minecraft into a description box; on others, you may have to click New rule (or similar) and then enter the router's information.
  7. Type your computer's static IP address (usually "192.168.2.number") in the "IP" or "Address" section of the rule.
  8. In the "TCP" or "UDP" drop-down menu near your rule, click TCP & UDP .
  9. Enter 25565 in both port text boxes.
    • Port 25565 is the default port used by the Minecraft server.
  10. If the rule isn't enabled by default, check its box or click the On button.
  11. Click the Save or Apply button, then wait for your router to finish rebooting if necessary. Once your router finishes rebooting, you can proceed with installing your Minecraft server on your Windows or Mac computer.
  12. Advertisement
Part 2
Part 2 of 5:

Installing on Windows

PDF download Download Article
  1. Go to https://www.java.com/en/download/uninstalltool.jsp in Internet Explorer (other browsers won't work), then click Agree and Continue and follow any on-screen prompts.
    • If your computer's Java isn't up to date, you may run into issues while hosting your server.
  2. This is necessary to have installed on your computer before running any Java commands:
    • Go to the JDK webpage
    • Check the "Accept License Agreement" box below the "Java SE Development Kit 8u201" heading.
    • Click the jdk-8u201-windows-x64.exe download link to the right of the "Windows x64" heading.
    • Double-click the install file, then follow the on-screen instructions.
  3. Go to https://www.minecraft.net/en-us/download/server in your computer's web browser, then click the minecraft_server.1.13.2.jar link in the middle of the page.
  4. Right-click the desktop, select New , click Folder , and type in Minecraft Server before pressing Enter .
  5. Click and drag the downloaded JAR file onto the "Minecraft Server" folder, then drop it there.
    • You can also click the server file to select it, press Ctrl + C , open the "Minecraft Server" folder, and press Ctrl + V to paste in the file.
  6. Double-click the server Java file inside of the "Minecraft Server" folder to do so. You should see several files and folders appear inside the folder.
  7. Once you see the "eula" text file appear in the "Minecraft Server" folder, do the following:
    • Double-click the "eula" file.
    • Replace the "eula=false" line of text with "eula=true"
    • Press Ctrl + S to save your changes.
    • Close the text document.
  8. It will resume running in a pop-up window, and more files will be added to the "Minecraft Server" folder.
  9. Once you see "Done!" at the bottom of the server's main window, click the text box in the bottom-left side of the server window, then type in stop and press Enter .
  10. It's inside the "Minecraft Server" folder.
  11. Right-click the "server.properties" file, click Rename , and remove the period from the name, then press Enter . This will change it to a regular file entitled "serverproperties", making it possible to open.
  12. Double-click the file, then double-click Notepad in the resulting pop-up menu.
  13. Find the "server-ip=" line of text, then type your computer's static IP that you set earlier immediately to the right of the "=" sign.
    • For example, if your computer's static IP address is "192.168.2.30", you would have server-ip=192.168.2.30 here.
  14. Press Ctrl + S , then exit Notepad.
  15. While you can launch your server by double-clicking the server file, doing so runs the server with a limited amount of computer memory. You can fix this problem by creating a launch file inside of the "Minecraft Server" folder:
    • Open Notepad (you may have to click Start
      Windows Start
      and type in notepad to find it).
    • Type java -Xmx3G -Xms1G -jar server.jar into Notepad.
    • Click File , then click Save As... in the drop-down menu.
    • Type run.bat into the "File name" text box.
    • Click the "Save as type" drop-down menu, then click All Files .
    • Select the "Minecraft Server" as the save location.
    • Click Save
  16. Advertisement
Part 3
Part 3 of 5:

Installing on Mac

PDF download Download Article
  1. Go to https://java.com/en/download/ , click Free Java Download , open the setup file, and follow any setup instructions.
    • If your computer's Java isn't up to date, you may run into issues while hosting your server.
  2. This is necessary to have installed on your computer before running any Java commands:
    • Go to the JDK webpage
    • Check the "Accept License Agreement" box below the "Java SE Development Kit 8u201" heading.
    • Click the jdk-8u201-macosx-x64.dmg download link to the right of the "Mac OS X x64" heading.
    • Double-click the DMG file, then drag the Java icon onto the "Applications" folder.
    • Follow any on-screen instructions.
  3. Go to https://www.minecraft.net/en-us/download/server in your computer's web browser, then click the minecraft_server.1.13.2.jar link in the middle of the page.
  4. Click the desktop, then click File , click New Folder , type in Minecraft Server , and press Return .
  5. Click and drag the downloaded JAR file onto the "Minecraft Server" folder, then drop it there.
    • You can also click the server file to select it, press Command + C , open the "Minecraft Server" folder, and press Command + V to paste in the file.
  6. Double-click the server Java file inside of the "Minecraft Server" folder to do so. You should see several files and folders appear inside the folder.
  7. Once you see the "eula" text file appear in the "Minecraft Server" folder, do the following:
    • Double-click the "eula" file.
    • Replace the "eula=false" line of text with "eula=true"
    • Press Command + S to save your changes.
    • Close the text document.
  8. It will resume running in a pop-up window, and more files will be added to the "Minecraft Server" folder.
  9. Once you see "Done!" at the bottom of the server's main window, click the text box in the bottom-left side of the server window, then type in stop and press Enter .
  10. It's inside the "Minecraft Server" folder.
  11. Click the "server.properties" file, then click File , select Open With , and click TextEdit to open it.
    • If you're unable to open the file, click it, click File , click Rename , remove the period between "server" and "properties" (you may first have to click the downward-facing arrow to the right of the "Name" box and uncheck "Hide Extensions"), and click Save .
  12. Find the "server-ip=" line of text, then type your computer's static IP that you set earlier immediately to the right of the "=" sign.
    • For example, if your computer's static IP address is "192.168.2.30", you would have server-ip=192.168.2.30 here.
  13. Press Command + S , then exit TextEdit by clicking the red circle in the upper-left corner of the window.
  14. While you can launch your server by double-clicking the server file, doing so runs the server with a limited amount of computer memory. You can fix this problem by creating a launch file inside of the "Minecraft Server" folder:
    • Open Spotlight
      Mac Spotlight
      , type in textedit , double-click TextEdit , and click New Document .
    • Type the following into TextEdit:
    • #!/bin/bash
    • cd "$(dirname "$0")"
    • java -Xmx3G -Xms1G -jar server.jar
    • Click Format , then click Make Plain Text and click OK .
    • Click File , then click Save in the drop-down menu.
    • Type run into the "Name" tap, then click the downward-facing arrow to the right of the "Name" box.
    • Uncheck the "Hide Extension" box, then replace ".txt" in the "Name" box with .command .
    • Select the "Minecraft Server" folder as the save location, click Save , and click Use .command when prompted.
  15. Advertisement
Part 4
Part 4 of 5:

Installing on Linux

PDF download Download Article
  1. Download the server file on https://mcversions.net .
    • chmod +x *
    • sudo java -jar *
  2. Do this by clicking on eula.txt and changing false into true .
  3. sudo java -jar *.jar .
  4. Then write stop .
    • If you want to have your server accessible to offline versions (cracks) just change online mode to false .
    • You can change the gamemode and other games aspects, too.
  5. On the line server-ip add an ip, like 192.168.1.16 .
  6. Just start the command:
    • sudo java -jar *.jar
  7. Advertisement
Part 5
Part 5 of 5:

Connecting to the Server

PDF download Download Article
  1. . This is the address that you'll need to give friends who want to connect to your game. Keep in mind that anyone with this address can join your game.
    • If your friends are on the same network as you are, they'll need your computer's static IP address instead.
  2. Close the server if it's currently running, then double-click the run file that you created in your "Minecraft Server" folder and wait for it to finish loading before proceeding.
    • The server window must always be open while you're hosting your server.
  3. Double-click the Minecraft app icon, which resembles a grassy block of dirt, then click PLAY at the bottom of the launcher.
    • You may be prompted to log in with your Minecraft email address and password if you haven't opened Minecraft in a long time.
  4. It's in the Minecraft menu.
  5. You'll find this button in the lower-right side of the window.
  6. In the "Server Name" text box at the top of the window, type in whatever you want to name your Minecraft server.
  7. In the "Server Address" text box, type in your computer's static IP address.
    • If you changed the "port" you should add : then your port (ex: 50.32.56.8:5555) but if your port is "25565" you don't need to add it...
  8. It's at the bottom of the window. This will create your server.
  9. Click the server's name at the top of the window.
  10. It's at the bottom of the window. This will open your server's world.
  11. You can do this by sending your public IP address to up to 19 of your friends and having them do the following: [1]
    • Open Minecraft and click Multiplayer
    • Click Direct Connect
    • Enter your computer's public IP address ( not the local IP address that you enter to host the server, unless they're on your Wi-Fi network).
    • Click Join Server
  12. Disable your firewall if necessary. If your friends are unable to join your game, you may have to disable your computer's firewall. Keep in mind that this opens up your computer to attacks from intruders, so you should only do this when playing with trustworthy people.
  13. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Can you make a server, like a Realm, that is private and for you and your friends only?
    Community Answer
    Yes, with the /whitelist command. You use /whitelist to use it.
  • Question
    Does owning a dedicated server in this way cost any money?
    Community Answer
    No, it is absolutely free and runs off your PC.
  • Question
    I get the message "Could not reserve enough space for 297152 KB object heap" when trying to make a server. How do I resolve this?
    Community Answer
    You have to allocate less ram like in Part 2, Step 12. Change 1 GB and 2 GB to 512 MB and 1 GB.
See more answers
Ask a Question
      Advertisement

      Tips

      • The faster your computer is, the more players you'll be able to host in a server without experiencing adverse effects (20 players per server is the overall limit).
      • Hosting over an Ethernet connection is much more secure and faster than hosting over wireless.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Opening a port through your router increases the chances that someone will be able to gain access to your network.
      • If your computer shuts down or freezes, the server will go down as well.
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 1,302,953 times.

      Did this article help you?

      Advertisement