X
This article was co-authored by wikiHow staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for wikiHow. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher.
The wikiHow Tech Team also followed the article's instructions and verified that they work.
This article has been viewed 1,290,355 times.
Learn more...
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.
Steps
Part 1
Part 1 of 5:
Preparing Your Router
-
1Open 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.
-
2Log in if prompted. 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 -
3Assign a static IP address to your computer. 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.
-
4Save your changes. 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.
-
5Find the "Port Forwarding" section. 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.
-
6Create a new rule named "Minecraft". 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.
-
7Enter your computer's static IP address. Type your computer's static IP address (usually "192.168.2.number") in the "IP" or "Address" section of the rule.
-
8Select both TCP and UDP. In the "TCP" or "UDP" drop-down menu near your rule, click TCP & UDP.
-
9Forward the Minecraft port. Enter 25565 in both port text boxes.
- Port 25565 is the default port used by the Minecraft server.
-
10Enable the rule. If the rule isn't enabled by default, check its box or click the On button.
-
11
Advertisement
Part 2
Part 2 of 5:
Installing on Windows
-
1Make sure that Java is up to date. Go to https://java.com/en/download/installed.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.
-
2Install the Java JDK if you haven't done so. 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.
-
3Download the server file. Go to https://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.
-
4Create a new folder. Right-click the desktop, select New, click Folder, and type in Minecraft Server before pressing ↵ Enter.
-
5Move the server file into your "Minecraft Server" folder. 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.
-
6Run the server file. 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.
-
7Accept the terms of use. 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.
-
8Double-click the server file again. It will resume running in a pop-up window, and more files will be added to the "Minecraft Server" folder.
-
9Close the server when it's done running. 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.
-
10Find the server.properties" file. It's inside the "Minecraft Server" folder.
-
11Rename the file. 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.
-
12Open the "serverproperties" file. Double-click the file, then double-click Notepad in the resulting pop-up menu.
-
13Add your computer's static IP address to the file. 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.
-
14Save the file. Press Ctrl+S, then exit Notepad.
-
15Create a launch file. 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 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
Advertisement
Part 3
Part 3 of 5:
Installing on Mac
-
1Make sure that Java is up to date. 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.
-
2Install the Java JDK if you haven't done so. 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.
-
3Download the server file. Go to https://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.
-
4Create a new folder. Click the desktop, then click File, click New Folder, type in Minecraft Server, and press ⏎ Return.
-
5Move the server file into your "Minecraft Server" folder. 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.
-
6Run the server file. 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.
-
7Accept the terms of use. 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.
-
8Double-click the server file again. It will resume running in a pop-up window, and more files will be added to the "Minecraft Server" folder.
-
9Close the server when it's done running. 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.
-
10Find the server.properties" file. It's inside the "Minecraft Server" folder.
-
11Open the file. 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.
-
12Add your computer's static IP address to the file. 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.
-
13Save the file. Press ⌘ Command+S, then exit TextEdit by clicking the red circle in the upper-left corner of the window.
-
14Create a launch file. 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 , 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.
Advertisement
Part 4
Part 4 of 5:
Installing on Linux
-
1Download the server file on https://mcversions.net.
-
2Create a new folder called Minecraft Server.
-
3Move your file in your folder.
-
4Open this folder in terminal and start the following commands:
- chmod +x *
- sudo java -jar *
-
5Accept the eula. Do this by clicking on eula.txt and changing false into true.
-
6Restart the command: sudo java -jar *.jar.
-
7Wait for "Done" to appear. Then write stop.
-
8Click on minecraft.properties and modify the different settings:
- 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.
-
9Add the local computer IP address to this file. On the line server-ip add an ip, like 192.168.1.16.
-
10Save the file and exit.
-
11Launch your server. Just start the command:
- sudo java -jar *.jar
Advertisement
Part 5
Part 5 of 5:
Connecting to the Server
-
1Find your public IP address. 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.
-
2Start your server with the "run" file. 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.
-
3Open Minecraft. 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.
-
4Click Multiplayer. It's in the Minecraft menu.
-
5Click Add Server. You'll find this button in the lower-right side of the window.
-
6Enter a server name. In the "Server Name" text box at the top of the window, type in whatever you want to name your Minecraft server.
-
7Enter your computer's address. 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...
-
8Click Done. It's at the bottom of the window. This will create your server.
-
9Select the server. Click the server's name at the top of the window.
-
10Click Join Server. It's at the bottom of the window. This will open your server's world.
-
11Invite friends to join. 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
-
12Disable 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.
Advertisement
Community Q&A
-
QuestionCan you make a server, like a Realm, that is private and for you and your friends only?Community AnswerYes, with the /whitelist command. You use /whitelist to use it.
-
QuestionDoes owning a dedicated server in this way cost any money?Community AnswerNo, it is absolutely free and runs off your PC.
-
QuestionI 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 AnswerYou have to allocate less ram like in Part 2, Step 12. Change 1 GB and 2 GB to 512 MB and 1 GB.
Advertisement
Warnings
- If your computer shuts down or freezes, the server will go down as well.⧼thumbs_response⧽
- Opening a port through your router increases the chances that someone will be able to gain access to your network.⧼thumbs_response⧽
Advertisement
References
About This Article
Advertisement