How to make a minecraft server! (inc. Bukkit and 64bit java optimisation)
201 diamonds
-
38,059Views, 69 today
- Comments
- Favorites
- Flag / Report
Get Embed Code
Retired Moderator
Level 70 : Legendary Warrior
Posted 09/24/11 1:26:26 pm , last updated: 02/22/12 1:10:19 pm
09/24/11
I do not give permission for this guide to be used anywhere else. Please let me know if you see it posted on a website that isn't planetminecraft.com or neoseeker.com
One part of: The Ultimate Server Guide

This guide is part 1 of the ultimate server guide. For all other server stuff, check out the ultimate server guide. Includes: Making a server, using plugins, great plugins to have, stopping cheaters and griefers, and a noob's guide to permissions!

These days I play Supreme Commander, which is probably the greatest RTS you've never heard of!
I do daily uploads of gameplays, replays and tutorials - check out my videos you might like them :)
Channel: http://www.youtube.com/user/ZaphodX1
Subscribe: http://bit.ly/-subscribe
Making a minecraft server
Ever wanted to make your own minecraft server? This blog gives step-by-step instructions on how to make your very own! If you found it useful please favorite/upvote. Any problems? Leave a comment and I will do my best to help :)
Can I host a minecraft server?
1 Search Google for: 'internet speed test'. Find you upload speed. I use http://speedtest.net/.
This is approximately how many people you can support. You can possibly support more, depending on what people are doing on the server. Flying, minecarts and teleporting greatly increase the amount of data you need to upload to people (because they move faster you have to upload more chunks). Having a vanilla server with no teleporting or flying will allow you to support many more people.
Upload speed:
0.25MB = 1-2 people
0.5 MB = 2-4 people
1 MB = 5-10 people
2 MB = 12-20 people
2 However you also need enough spare RAM for the server. Decide how much spare room you have to allocate to the server, but remember to leave at least 0.5GB for the operating system and at least another 0.5GB if you play minecraft on the same machine. If you want to allocate more than 1GB to minecraft or your server, you will need 64-bit java (see the end of the blog)
Spare memory allocated to server:
0.5GB = 4 people
1.0GB = 8 people
2.0GB = 16 people
How to make your server:
1 Make a vanilla or Bukkit server
2 Allow people to connect by either port forwarding your router or using Hamachi.
Now, read on...
**************************************************************************************************************************
Making a server
Types of server:
1 Make a vanilla server
Very simple. Very little customisation or protection. Good for a very basic server for you and a couple of trusted friends who won't grief.
2 Make a Bukkit server
Only slightly harder to setup and manage. Allows you to use plugins, essentially allowing you to customise your server however you want: add new games, NPCs, economy, jobs, shops, grief protection, cheating protection etc
Vanilla Server:
1 Go to http://www.minecraft.net/download and download minecraft_server.exe
2 Double click 'minecraft_server.exe'. When you first run the server, it creates some server files. You may have to restart your server after you run it for the first time.
Better alternative method:
1 Go to http://www.minecraft.net/download and download minecraft_server.jar
2 Right click your desktop and make a new text document. Paste the following into the text document:
START /ABOVENORMAL /B java -Xincgc -Xmx1G -jar minecraft_server.jar nogui
This starts your server with above normal priority. -Xincgc enables garbage collection so you only use memory you need (less memory usage). -Xmx1G sets the maximum RAM allocated to 1GB (change this if you need to).
Now rename your text document to 'run.bat'. If your text document doesn't end in .txt, do a Google search for 'enable file extensions'. That will change your 'text document' to 'text document.txt'. Then you can rename it to 'run.bat'
3 Make a new folder containing minecraft_server.jar and run.bat. Double click run.bat to start your server. When you first run the server, it creates some server files. You may have to restart your server after you run it for the first time.
Bukkit Server:
1 Go to http://bukkit.org/. For dev builds go here. In the top right you will see the latest 'recommended build' of Bukkit. Click on the latest recommmended build and then download 'craftbukkit-0.0.1-SNAPSHOT.jar'. Rename it to 'craftbukkit.jar'.
2 Right click your desktop and make a new text document. Paste the following into the text document:
@echo off
START /ABOVENORMAL /B java.exe -Xincgc -Xmx1024M -jar craftbukkit.jar
pause
This starts your server with above normal priority. -Xincgc enables garbage collection so you only use memory you need (less memory usage). -Xmx1024M sets the maximum RAM allocated to 1GB, change this if you need to.
Now rename your text document to 'run.bat'. If your text document doesn't end in .txt, do a Google search for 'enable file extensions'. That will change your 'text document' to 'text document.txt'. Then you can rename it to 'run.bat'
3 Make a new folder containing craftbukkit.jar and run.bat. Double click run.bat to start your server. When you first run the server, it creates some server files. You may have to restart your server after you run it for the first time.
**************************************************************************************************************************
Allowing people to connect to you
1 Port forward your router
This forwards internet traffic to you computer, allowing people to connect to you. Good speeds.
2 Use Hamachi to create a virtual LAN
Uses software to make it seem like you are connected to other people you are playing with. Bad speeds, limited by how fast hamachi allows you to transfer data to your players. Only Slightly easier to setup. Will be slower, will be laggy. Not recommended unless you pay for a hamachi premium account.
Port forward your router:
1 Find your local IP:
Method A
i) Press windows key+R . Alternatively click Start>Run.
ii) Type 'cmd' then press enter.
iii) In the command window, type 'ipconfig' then press enter
iv) Under Local Area Connection/Wireless Connection find your 'ipv4 address', something similar to: 192.168.0.???
Method B
i) In the taskbar (bottom-right) click on your network adapter that you use to connect to the internet (local area connection or wireless connection).
ii) For XP click on the support tab and look for 'ip address'. You are looking for something like 192.168.0.??? This is your ipv4 address.
iii) For Vista/Win 7, click open network centre and then 'view status' on the connection and then click 'details'. You are looking for something like 192.168.0.??? This is your ipv4 address.
2 Find your router brand and model number: check the instruction manual, the box, or the sticker on the back of your router. If you still cannot find it then google search for which router your isp supplied you with.
Examples: Netgear 'DG834' , Belkin 'F5D7010' , Edimax 'ZPh0-DX' etc
3 Go to http://portforward.com
i)Find and click on your router name and model.
ii)Click skip advertisement at top right
iii)Scroll down and select 'Minecraft server'
iv)Follow the step by step instructions. For 'local ip address', use the ipv4 address you have just found.
4 Google search: 'What is my ip?'. Give this IP to people who you want to join your server. Try to connect using this IP to check whether you portforwarded correctly.
*******************
IF YOU CANNOT FIND YOUR ROUTER MODEL on portforward.com:
This is a very generalised list of how to port forward on a router:
1 Google search to find your router's homepage and default login/password. Probably something similar to: 192.168.0.1 or 192.168.1.1 or 192.168.2.1 or 10.0.0.1 or 172.0.0.1 with user=admin and password=password
2 Find the 'Advanced settings' or 'Port forwarding' section in your router.
3 You now need to port forward:
Local IP= ipv4 address you found
Port= 25565
TCP/UDP= Must be both TCP and UDP. If you cannot select both TCP and UDP, then setup two port forwards, one for TCP and one for UDP.
*******************
Use Hamachi to create a virtual LAN:
1 Go here and click on download now for 'unmanaged mode'.
2 Double click the installer, and install Hamachi.
3 Open Hamachi and click 'Create new network'.
4 Enter a name for your network, and then enter a password.
5 To get the server ip, simply hover your mouse over whoever is the owner of the hamachi network. Alternatively, right click their name and 'copy ipv4 address'.
6 After you have run your server for the first time, it will create a 'server.properties' file. Right click it and edit the file in notepad. Add your hamachi ip to 'server-ip='. Save it and then restart your server.
7 Give the network name and password to people who you want to play on your server.
If you have a blue 'relayed' connection with people on your server, they will experience a pretty large amount of lag. This can often be resolved by repeatedly powering off Hamachi and restarting Hamachi. The hoster and relayed player may have to do this many times before a proper non-relayed connection is established.
**************************************************************************************************************************
Optimise your server/minecraft with 64bit java
Minecraft 1.8 and 1.9 have put even more stress on memory and processor usage. Now more than ever it is recommended to use 64-bit java. This will give you less lag and is essential for high resolution texture packs. 64-bit java also allows you to give more memory to java. If you are getting out of memory errors moving to 64-bit will help.
If you only have 32-bit java, the most memory you can allocate to java is 1GB. ZaphodX: You can allocate up to 1.5GB, but only 1GB will be used. Remember that even if you have 64-bit java installed, 32-bit java will run by default unless you have changed it.
1 Check if you have a 64bit operating system:
i) Click Start and right click 'Computer'/'My computer'
ii) Choose 'Properties' from the menu
iii) Under 'System' you should have 'x64 Edition' or '64-bit Operating System'
2 Install 64-bit java. I recommend java 6. Install java 7 at your own risk, I can not offer support if you choose to use java 7.
i) Go to http://java.com/en/download/manual.jsp. Download 'Windows 7, XP Offline (64-bit)'.
ii) Double click the downloaded file and install 64bit java.
3 Change the default run path to the 64-bit version of java:
i)
For Windows XP:
Click Start -> Control Panel -> System -> Advanced
For Windows Vista/7:
Click Start and right click 'Computer'
Choose 'Properties' from the menu
Click 'Advanced' or 'Advanced system settings'
ii) Click on Environment Variables.
iii) Under System Variables, scroll down, find 'Path' or 'PATH', and click on it.
iv) Click the Edit button and then scroll to the front of the edit window, and paste this:
C:Program FilesJavajre6bin;
v) Click OK->OK->OK
To verify you are using 64-bit java, open minecraft or your minecraft server. Press CTRL+SHIFT+ESC to open the task manager. Find java.exe and right-click it and select properties. If the location is ' C:Program FilesJavajre6bin;' then it is using the 64-bit version of java.
Additional Details
| Tags: | Tutorial, Minecraft, Server, Make, Setup, Create, Host, Beta, Hosting, Vanilla, Bukkit, Plugins, Help, Hamachi, Port, Forwarding, Portforwarding, Bit, 64bit, Java, Guide |
Update #3 : 02/22/2012 8:42:42 am2/22/12
Update #2 : 10/09/2011 1:17:03 pm10/09/11
v0.1 : 09/24/2011 8:12:18 pm9/24/11
Join us to post comments.
Comments : 702
123456789101112131415 next »
1 - 50 of 702
123456789101112131415 next »
1 - 50 of 702










Reply
Delete
TRON2277
Level 1
New Miner
April 22, 2013, 10:30 am
IM DIAMOND #200!!!
Reply
Delete
Xekonkaii
Level 1
New Miner
March 3, 2013, 4:32 am
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
March 3, 2013, 11:08 pm
Reply
Delete
Xekonkaii
Level 1
New Miner
March 4, 2013, 12:41 am
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
March 4, 2013, 2:11 am
Reply
Delete
Xekonkaii
Level 1
New Miner
March 4, 2013, 3:44 am
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
March 4, 2013, 7:50 am
Reply
Delete
Xekonkaii
Level 1
New Miner
March 4, 2013, 10:19 pm
Reply
Delete
niktrik
Level 1
New Miner
March 1, 2013, 11:42 am
Reply
Delete
LegadoGamer5
Level 5
Apprentice Ranger
February 25, 2013, 8:00 am
use this link if the server says that java doesnt work when you open it...
it has the 2 java files and how to use them!
Reply
Delete
Darek_C
Level 1
New Miner
February 5, 2013, 2:54 am
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
February 5, 2013, 6:58 am
Reply
Delete
Jennifer0518
Level 26
Expert Taco
January 31, 2013, 3:05 am
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
January 31, 2013, 7:04 am
Reply
Delete
Jennifer0518
Level 26
Expert Taco
January 31, 2013, 1:04 pm
So I entered exactly
@echo off
START /ABOVENORMAL /B java.exe -Xincgc -Xmx1024M -jar craftbukkit.jar
pause
and then I placed in a folder named "Bukkit Server" with the jar file that is named "craftbukkit.jar"
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
January 31, 2013, 2:51 pm
Reply
Delete
Jennifer0518
Level 26
Expert Taco
February 2, 2013, 9:31 am
Reply
Delete
phileggtree
Level 1
New Explorer
January 24, 2013, 9:59 am
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
January 24, 2013, 10:28 am
Reply
Delete
Jlighter123
Level 16
Journeyman Spelunker
January 22, 2013, 3:03 am
Reply
Delete
sSepikSs
Level 1
New Miner
January 18, 2013, 5:56 pm
Reply
Delete
Danster321
Level 1
New Crafter
December 22, 2012, 10:43 am
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
cd C:Users\Daniel\app
"C:/Program Files (x86)/Java/jre6/bin/java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
pause
BUT IF I USE THIS CODE, it DOES let me go past 1024M (1G) but nobody can connect? It's as if the portforwarding MAGICALLY dissapeared! Here it is:
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
cd C:Users\Daniel\app
"c:/Program Files/Java/jre6/bin/java.exe" -Xincgc -Xmx2048M -Xms2048M -jar craftbukkit.jar
pause
If you look closely, one is Program Files (x86) and one is just Program Files. I have x64 bit Java running but the Program Files one without x86 does not let anyone connect!
I even tried your code
@echo off
START /ABOVENORMAL /B java.exe -Xincgc -Xmx1024M -jar craftbukkit.jar
pause
But it still didn't work! Any help here??
Thanks if you could help me,-Dan.
Reply
Delete
mineo72
Level 4
Apprentice Blacksmith
December 26, 2012, 4:19 pm
Reply
Delete
Forever-Undead
Level 16
Journeyman Zombie
December 17, 2012, 9:09 pm
Reply
Delete
mrgeenidee2
Level 1
New Miner
April 28, 2013, 7:47 pm
Reply
Delete
Newcraft123
Level 1
New Crafter
December 16, 2012, 12:32 am
HELP people cant join
and i portforwared
Reply
Delete
nathanrox123
Level 1
New Explorer
November 25, 2012, 10:55 pm
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
November 26, 2012, 12:38 am
Reply
Delete
gogocp
Level 14
Journeyman Cake
November 24, 2012, 9:00 am
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
November 24, 2012, 9:02 am
Reply
Delete
gogocp
Level 14
Journeyman Cake
November 24, 2012, 9:28 am
I know this 'joke' has been used before in different words but... Cyprezz? Can I subscribe to ZaphodX twice now?
Reply
Delete
TjingTjongWah
Level 6
Apprentice Ranger
November 24, 2012, 4:38 am
PLEASE HELP ME
I did everything maked the text file enabled the extensions runned the server.exe opened my MC wend to Multiplayer typed in localhost entered my server everything is good until my running server.exe says Cant keep up! And then everything crashes...
( Sorry for my bad englisch )
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
November 24, 2012, 4:40 am
Reply
Delete
TjingTjongWah
Level 6
Apprentice Ranger
November 24, 2012, 4:47 am
I dont know...
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
November 24, 2012, 4:49 am
Reply
Delete
TjingTjongWah
Level 6
Apprentice Ranger
November 24, 2012, 4:53 am
3,49 MB is that enough?
In total theres 8,00 MB on my PC
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
November 24, 2012, 5:03 am
Reply
Delete
Danster321
Level 1
New Crafter
December 23, 2012, 9:06 am
you could help on this.... Whenever I use this code, it does NOT let me
go past 1024M (1G) of memory:
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
cd C:UsersDanielapp
"C:/Program Files (x86)/Java/jre6/bin/java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
pause
BUT
IF I USE THIS CODE, it DOES let me go past 1024M (1G) but nobody can
connect? It's as if the portforwarding MAGICALLY dissapeared! Here it
is:
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
cd C:UsersDanielapp
"c:/Program Files/Java/jre6/bin/java.exe" -Xincgc -Xmx2048M -Xms2048M -jar craftbukkit.jar
pause
If
you look closely, one is Program Files (x86) and one is just Program
Files. I have x64 bit Java running but the Program Files one without x86
does not let anyone connect!
I even tried your code
@echo off
START /ABOVENORMAL /B java.exe -Xincgc -Xmx1024M -jar craftbukkit.jar
pause
But it still didn't work! Any help here??
Thanks if you could help me,-Dan.
Reply
Delete
MrN
Level 1
New Miner
November 23, 2012, 2:49 am
http://code.google.com/p/hamachinetlistaddon/
Reply
Delete
IronHusky
Level 21
Expert Geek
November 14, 2012, 8:39 am
Please get back to me and help me u, it would be much appreciatedThe problem is that no one can join my server, they join my hamachi network fine, just not the server
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
November 14, 2012, 8:56 am
Have you changed the server port?
It is quite possible you clicked deny on your firewall when they tried to connect. Reinstall Java and make sure you give permission when java wants to receive a connection from the internet.
Reply
Delete
IronHusky
Level 21
Expert Geek
November 14, 2012, 9:15 am
Reply
Delete
IronHusky
Level 21
Expert Geek
November 14, 2012, 9:34 am
I re-installed java, but I no longer get the firewall message, my freinds just cannot reach server, any idea's?
Reply
Delete
IronHusky
Level 21
Expert Geek
November 17, 2012, 9:43 am
Reply
Delete
MinerDiner123
Level 28
Expert Musician
November 6, 2012, 2:45 am
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
November 6, 2012, 2:47 am
Reply
Delete
MinerDiner123
Level 28
Expert Musician
November 6, 2012, 2:49 am
Reply
Delete
momarama
Level 8
Apprentice Princess
October 21, 2012, 5:42 pm
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
October 22, 2012, 2:34 am
Reply
Delete
Gcity306
Level 2
Apprentice Miner
October 20, 2012, 1:50 am
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
October 22, 2012, 2:34 am
Reply
Delete
Gcity306
Level 2
Apprentice Miner
October 22, 2012, 9:45 am
Reply
Delete
Gawfield305
Level 18
Journeyman Spelunker
October 15, 2012, 3:08 am
Reply
Delete
Gawfield305
Level 18
Journeyman Spelunker
October 15, 2012, 3:04 am
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
October 15, 2012, 3:20 am
Reply
Delete
Gawfield305
Level 18
Journeyman Spelunker
October 15, 2012, 11:21 am
Reply
Delete
mynameisjoe
Level 41
Master Bunny
October 7, 2012, 6:49 pm
Reply
Delete
mynameisjoe
Level 41
Master Bunny
October 7, 2012, 6:17 pm
will that work the same? please help :(
Reply
Delete
mynameisjoe
Level 41
Master Bunny
October 7, 2012, 4:50 pm
Reply
Delete
jakichan77
Level 14
Journeyman Skinner
October 26, 2012, 4:52 pm
Reply
Delete
Potatoboy+Churley
Level 3
Apprentice Engineer
October 7, 2012, 4:01 pm
Reply
Delete
Titus763
Level 8
Apprentice Cake
September 29, 2012, 2:13 pm
Hey Thanks so much! Diamond and sub and Favorite!
I was also wondering if you could do a guide on how to make a Static Ip without No-ip.com
I really need one :D
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
September 29, 2012, 3:39 pm
Reply
Delete
Titus763
Level 8
Apprentice Cake
September 30, 2012, 5:32 am
Reply
Delete
jerome1234
Level 8
Apprentice Architect
September 22, 2012, 4:17 pm
Reply
Delete
ZaphodX
Retired Moderator
Level 70
Legendary Warrior
September 22, 2012, 5:06 pm