This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-04-30 19:10:58

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Official Guide to Making a Minecraft Server

There used to be one in old Misc, but no-one's going to spend time looking for it and it's probably outdated and stuff  tongue

I'm only going to use CraftBukkit because from what I've heard, Hamachi is slow, and the original Minecraft_Server.exe doesn't have plugins.

Bukkit

1. Download CraftBukkit. (Download Link). That link is for Minecraft version 1.2.5. I will update it as new versions come out.

2. Find the folder where you want your minecraft server to run. Mine is a folder on the desktop. Now place your downloaded craftbukkit.jar file inside the folder.

3. If you are on a Mac, open Textwrangler (you should download it if you don't have it), or if you are on Windows, open Notepad++ (very recommended that you download this  tongue ).

4. If you don't have Java installed, install it now.

5. For windows users, paste this into notepad++

Code:

@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
PAUSE

then save it as filename.BAT in the folder you created for the server in step 2.
--
For Mac users, paste this into TextWrangler:

Code:

#!/bin/bash
cd "$( dirname "$0" )"
java -Xmx1024M -Xms1024M -jar craftbukkit.jar

Save the file as filename.command in the server folder you created in step 2.

Now open terminal and type

Code:

chmod +x

But do not press enter/return.

Now drag the command file you created into the terminal.

Now press enter/return.

6. Starting the server. Double click the file you made in step 5 to start the server. The file will create lots of folders and files in the folder you created in step 2.

7. Now anyone on your local network will be able to join your server with your local ip address, however you will need to follow the next step to portforward if you want people to join your server via the internet.

8. Go to portforward.com and find your router. Then find Minecraft server in the list of applications to portforward for. There should be detailed instructions and screenshots.

9. Go to whatismyip.com to find out your external ip. This is what other gamers will use to connect to your server. Since you probably have a dynamically changing ip address (you pay extra for static ones) you will probably have a different ip address every time you restart your router. Therefore you will need to follow the next step.

10. Go to no-ip.com and get yourself a free domain name, and also download the no-ip updater which updates your ip address with the no-ip servers.

11. Now open up server.properties file in your server folder, with your favourite text editor and make some preference changes to the file.

12. If you like, you may install some bukkit plugins by dragging the jar files to the plugins folder in your server folder.

13. Let's restart the server. Terminal or command prompt should print some lines, and then it should stop. Your server has loaded. Type commands such as "who" to see who is on and "memory" to see how much memory is being used.

14. To gracefully stop the server type "stop".

You're done!  big_smile

Troubleshooting

Does your server not work for an unknown reason?

Check that any firewalls and antivirus programs are set to allow traffic to pass through using port 25565 and with the bukkit jar file.

Does your terminal/command prompt close immediately?

Make sure your java directory in the .BAT or .command file is correct. If you have 32-bit Java on a 64-bit version of Windows, you need to change %ProgramFiles% to %ProgramFiles(x86)% or similar.

You Server not coming online for anyone?

Check you've port forwarded correctly with this online tool  smile

http://canyouseeme.org/

Last edited by jji7skyline (2012-05-01 19:00:40)


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#2 2012-04-30 19:23:06

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

You should also probably mention that the batch file can easily be created without downloading anything on Windows with Notepad, as well.


Posts: 20000 - Show all posts

Offline

 

#3 2012-04-30 19:31:11

prototype47
Scratcher
Registered: 2010-02-25
Posts: 98

Re: Official Guide to Making a Minecraft Server

I just went on my own for making my Minecraft server.  I did every single step you listed, yet it doesn't work  hmm


SED is temporarily abandoned while I move onto new areas, such as AI with pathfinding, individual reactions, and group communication.  More complex projects are also brewing.
http://dl.dropbox.com/u/41930734/newsig.png

Offline

 

#4 2012-04-30 19:35:59

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

Are you sure you port forwarded properly?


Posts: 20000 - Show all posts

Offline

 

#5 2012-04-30 19:42:03

fire219
Scratcher
Registered: 2008-02-07
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

This is a very nice tutorial, but I'll add a few things I have learned from personal experience:

-If you have any firewalls or parental control software on the computer hosting the server, you have to let the server program through as an exception.

-If you get a "CANNOT BIND TO PORT* error, you need to clear the "server-ip" space in server.properties.

-You need to close as many programs as possible when running the server, or it will start lagging.

-If the batch file opens then closes instantly, It usually means that it can't find java. move java.exe or javaw.exe to the Bukkit folder and change the batch file accordingly.



Also, in Windows you can use "java" instead of the Java directory.  tongue

Last edited by fire219 (2012-04-30 19:43:24)


http://bluetetrarpg.x10.mx/usercard/img.php?name=fire219

Offline

 

#6 2012-04-30 19:43:47

prototype47
Scratcher
Registered: 2010-02-25
Posts: 98

Re: Official Guide to Making a Minecraft Server

veggieman001 wrote:

Are you sure you port forwarded properly?

I forwarded port 25565 to my local static ip 192.168.1.250 using "both" as the TCP/UDP protocol selection.  It's enabled.  But the server comes up as not available when I enter it's URL into minecraft...


SED is temporarily abandoned while I move onto new areas, such as AI with pathfinding, individual reactions, and group communication.  More complex projects are also brewing.
http://dl.dropbox.com/u/41930734/newsig.png

Offline

 

#7 2012-04-30 19:44:34

hdarken
Scratcher
Registered: 2008-06-26
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

Good guide!

I don't think you need Notepad++ for the .BAT file.


http://i.imgur.com/VskBk.png
http://i.imgur.com/tgxVZ.jpg

Offline

 

#8 2012-04-30 19:47:20

fire219
Scratcher
Registered: 2008-02-07
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

prototype47 wrote:

veggieman001 wrote:

Are you sure you port forwarded properly?

I forwarded port 25565 to my local static ip 192.168.1.250 using "both" as the TCP/UDP protocol selection.  It's enabled.  But the server comes up as not available when I enter it's URL into minecraft...

When you are getting on a server on the same computer as the server, use "localhost", not the IP.


http://bluetetrarpg.x10.mx/usercard/img.php?name=fire219

Offline

 

#9 2012-04-30 19:52:06

prototype47
Scratcher
Registered: 2010-02-25
Posts: 98

Re: Official Guide to Making a Minecraft Server

fire219 wrote:

prototype47 wrote:

veggieman001 wrote:

Are you sure you port forwarded properly?

I forwarded port 25565 to my local static ip 192.168.1.250 using "both" as the TCP/UDP protocol selection.  It's enabled.  But the server comes up as not available when I enter it's URL into minecraft...

When you are getting on a server on the same computer as the server, use "localhost", not the IP.

Okay..  Would you be able to try my url (protocraft-mc.servegame.com) in about 10 minutes?  I gotta turn the server on.  I'll let you know when, okay?


SED is temporarily abandoned while I move onto new areas, such as AI with pathfinding, individual reactions, and group communication.  More complex projects are also brewing.
http://dl.dropbox.com/u/41930734/newsig.png

Offline

 

#10 2012-04-30 19:53:07

fire219
Scratcher
Registered: 2008-02-07
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

prototype47 wrote:

fire219 wrote:

prototype47 wrote:


I forwarded port 25565 to my local static ip 192.168.1.250 using "both" as the TCP/UDP protocol selection.  It's enabled.  But the server comes up as not available when I enter it's URL into minecraft...

When you are getting on a server on the same computer as the server, use "localhost", not the IP.

Okay..  Would you be able to try my url (protocraft-mc.servegame.com) in about 10 minutes?  I gotta turn the server on.  I'll let you know when, okay?

Ok, I'll try.


http://bluetetrarpg.x10.mx/usercard/img.php?name=fire219

Offline

 

#11 2012-04-30 20:06:17

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

fire219 wrote:

This is a very nice tutorial, but I'll add a few things I have learned from personal experience:

-If you have any firewalls or parental control software on the computer hosting the server, you have to let the server program through as an exception.

-If you get a "CANNOT BIND TO PORT* error, you need to clear the "server-ip" space in server.properties.

-You need to close as many programs as possible when running the server, or it will start lagging.

-If the batch file opens then closes instantly, It usually means that it can't find java. move java.exe or javaw.exe to the Bukkit folder and change the batch file accordingly.



Also, in Windows you can use "java" instead of the Java directory.  tongue

Good point. I'll add it in a new section called Troubleshooting.

That's should be clear by default and you shouldn't change it unless you have a server with more than one computer.

Common sense, but I'll add it.

I'll add this to troubleshooting.

I think you need to set an environmental variable to be able to do that?


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#12 2012-04-30 20:19:05

prototype47
Scratcher
Registered: 2010-02-25
Posts: 98

Re: Official Guide to Making a Minecraft Server

fire219 wrote:

prototype47 wrote:

fire219 wrote:


When you are getting on a server on the same computer as the server, use "localhost", not the IP.

Okay..  Would you be able to try my url (protocraft-mc.servegame.com) in about 10 minutes?  I gotta turn the server on.  I'll let you know when, okay?

Ok, I'll try.

Sorry, couldn't get it up tonight.  I should have it tomorrow.


SED is temporarily abandoned while I move onto new areas, such as AI with pathfinding, individual reactions, and group communication.  More complex projects are also brewing.
http://dl.dropbox.com/u/41930734/newsig.png

Offline

 

#13 2012-04-30 20:38:09

fire219
Scratcher
Registered: 2008-02-07
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

jji7skyline wrote:

fire219 wrote:

This is a very nice tutorial, but I'll add a few things I have learned from personal experience:

-If you have any firewalls or parental control software on the computer hosting the server, you have to let the server program through as an exception.

-If you get a "CANNOT BIND TO PORT* error, you need to clear the "server-ip" space in server.properties.

-You need to close as many programs as possible when running the server, or it will start lagging.

-If the batch file opens then closes instantly, It usually means that it can't find java. move java.exe or javaw.exe to the Bukkit folder and change the batch file accordingly.



Also, in Windows you can use "java" instead of the Java directory.  tongue

Good point. I'll add it in a new section called Troubleshooting.

That's should be clear by default and you shouldn't change it unless you have a server with more than one computer.

Common sense, but I'll add it.

I'll add this to troubleshooting.

I think you need to set an environmental variable to be able to do that?

You would be surprised how many people lack common sense.  tongue

And yes, you have to set an environment variable. But sometimes that is done by the Java installer, sometimes not. Not sure why. Not too hard to set the variable if it isn't already, anyway.

@prototype: Ok.


http://bluetetrarpg.x10.mx/usercard/img.php?name=fire219

Offline

 

#14 2012-04-30 21:10:12

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

fire219 wrote:

jji7skyline wrote:

fire219 wrote:

This is a very nice tutorial, but I'll add a few things I have learned from personal experience:

-If you have any firewalls or parental control software on the computer hosting the server, you have to let the server program through as an exception.

-If you get a "CANNOT BIND TO PORT* error, you need to clear the "server-ip" space in server.properties.

-You need to close as many programs as possible when running the server, or it will start lagging.

-If the batch file opens then closes instantly, It usually means that it can't find java. move java.exe or javaw.exe to the Bukkit folder and change the batch file accordingly.



Also, in Windows you can use "java" instead of the Java directory.  tongue

Good point. I'll add it in a new section called Troubleshooting.

That's should be clear by default and you shouldn't change it unless you have a server with more than one computer.

Common sense, but I'll add it.

I'll add this to troubleshooting.

I think you need to set an environmental variable to be able to do that?

You would be surprised how many people lack common sense.  tongue

And yes, you have to set an environment variable. But sometimes that is done by the Java installer, sometimes not. Not sure why. Not too hard to set the variable if it isn't already, anyway.

@prototype: Ok.

Welcome to the Internet :3


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#15 2012-05-01 03:59:49

Cassiedragon
Scratcher
Registered: 2011-07-07
Posts: 500+

Re: Official Guide to Making a Minecraft Server

You should add http://canyouseeme.org/ :3

Simply run your server, type 25565 (or whatever port you forwarded) into 'What Port?' and if it can connect, you're port-forwarded :3


http://imghosting.cassiedragonandfriends.org/cassiedragonsiggy.gif

Offline

 

#16 2012-05-01 14:56:24

prototype47
Scratcher
Registered: 2010-02-25
Posts: 98

Re: Official Guide to Making a Minecraft Server

Cassiedragon wrote:

You should add http://canyouseeme.org/ :3

Simply run your server, type 25565 (or whatever port you forwarded) into 'What Port?' and if it can connect, you're port-forwarded :3

I tried that, and port 25565 gives out a timeout error...  hmm  Can anyone verify that protocraft-mc.servegame.com is down?  It doesn't come up in minecraft on the server PC, and I've followed every step..


SED is temporarily abandoned while I move onto new areas, such as AI with pathfinding, individual reactions, and group communication.  More complex projects are also brewing.
http://dl.dropbox.com/u/41930734/newsig.png

Offline

 

#17 2012-05-01 18:59:15

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

prototype47 wrote:

Cassiedragon wrote:

You should add http://canyouseeme.org/ :3

Simply run your server, type 25565 (or whatever port you forwarded) into 'What Port?' and if it can connect, you're port-forwarded :3

I tried that, and port 25565 gives out a timeout error...  hmm  Can anyone verify that protocraft-mc.servegame.com is down?  It doesn't come up in minecraft on the server PC, and I've followed every step..

Are you using your ip to connect? If so, check it hasn't changed.

Also try using "localhost" to connect.

Thanks for the website Cassie! I'll definitely add it  smile


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#18 2012-05-01 19:42:48

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

I can't find my router type. I'm using Actiontec >.>

Can't tell which string of digits is the 'type' on the router.

Last edited by ProgrammingFreak (2012-05-01 19:50:18)

Offline

 

#19 2012-05-01 19:56:52

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

Portforward doesn't have my model.  hmm
I guess I'll tell them...

Offline

 

#20 2012-05-01 19:57:41

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

ProgrammingFreak wrote:

I can't find my router type. I'm using Actiontec >.>

Can't tell which string of digits is the 'type' on the router.

You can't find your router model name?


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#21 2012-05-01 20:14:44

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

jji7skyline wrote:

ProgrammingFreak wrote:

I can't find my router type. I'm using Actiontec >.>

Can't tell which string of digits is the 'type' on the router.

You can't find your router model name?

The type.

I found it now, but can't find it on Portforward.  hmm

Offline

 

#22 2012-05-01 21:00:47

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

Most actiontec models should have instructions. Try a different actionetc model  smile


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#23 2012-05-01 21:52:20

prototype47
Scratcher
Registered: 2010-02-25
Posts: 98

Re: Official Guide to Making a Minecraft Server

jji7skyline wrote:

prototype47 wrote:

Cassiedragon wrote:

You should add http://canyouseeme.org/ :3

Simply run your server, type 25565 (or whatever port you forwarded) into 'What Port?' and if it can connect, you're port-forwarded :3

I tried that, and port 25565 gives out a timeout error...  hmm  Can anyone verify that protocraft-mc.servegame.com is down?  It doesn't come up in minecraft on the server PC, and I've followed every step..

Are you using your ip to connect? If so, check it hasn't changed.

Also try using "localhost" to connect.

Thanks for the website Cassie! I'll definitely add it  smile

I can connect with localhost and my local ip (192.168.1.250) but not my public ip (173.191.235.22) or my server url...  My friend tried to connect too from his house and it doesn't work for him either. What is going wrong and how do I fix it? Please help!


SED is temporarily abandoned while I move onto new areas, such as AI with pathfinding, individual reactions, and group communication.  More complex projects are also brewing.
http://dl.dropbox.com/u/41930734/newsig.png

Offline

 

#24 2012-05-01 22:43:09

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

prototype47 wrote:

jji7skyline wrote:

prototype47 wrote:


I tried that, and port 25565 gives out a timeout error...  hmm  Can anyone verify that protocraft-mc.servegame.com is down?  It doesn't come up in minecraft on the server PC, and I've followed every step..

Are you using your ip to connect? If so, check it hasn't changed.

Also try using "localhost" to connect.

Thanks for the website Cassie! I'll definitely add it  smile

I can connect with localhost and my local ip (192.168.1.250) but not my public ip (173.191.235.22) or my server url...  My friend tried to connect too from his house and it doesn't work for him either. What is going wrong and how do I fix it? Please help!

That means you haven't port forwarded correctly  smile


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#25 2012-05-02 03:07:46

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Official Guide to Making a Minecraft Server

Great job skyline! This was really needed  smile


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

Board footer