Hosting A Server On Your Computer

Posts 1–15 of 21 · Page 1 of 2
Hosting A Server On Your Computer
I keep looking around and seeing tons of crappy Hamachi servers, so I figured I'd write up a tutorial for people on hosting a server without Hamachi. All of this was written by hand, by me. It took a while, but I hope it is helpful for people.

Prerequisites:
▫ Java Runtime Environment installed.
▫ A relatively powerful computer.
▫ A decent network connection.

Section 1: Downloading and Setting Up Your Server
Vanilla Server:
▫ Create a new folder somewhere on your computer called Server.
▫ Download the Minecraft server JAR and save it to the Server directory.
▫ [Windows] Create a new text file inside the Server directory and call it start.bat
▫ [Windows] Right click the file, click edit, and then paste the following into the file:
java ▫Xmx1024M ▫Xms1024M ▫jar minecraft_server.jar nogui
▫ [Windows] Save the file the close Notepad.
▫ [Mac] Open TextEdit, create a blank document, then paste the following in:
cd /Path/To/Server/
java ▫Xmx1024M ▫Xms1024M ▫jar minecraft_server.jar nogui

▫ [Mac] Press Shift+Command+T to convert the document to plain text, and the save it as start.command
▫ Double click the start.bat or start.command file inside the Server directory to launch the server.
▫ The server will start creating files inside the Server directory, and will also generate a world.
▫ Once it finishes everything that it is doing, type stop into the Command Prompt or Terminal.
▫ Double click your start file again.
▫ Open Minecraft, select Multiplayer, and set the server IP as localhost to test your server.
▫ When you are done, open the Command Prompt or Terminal window that came up and type stop.

Bukkit Server:
▫ Create a new folder somewhere on your computer called Server.
▫ Download a Bukkit build and save the JAR to the Server directory. Selecting a proper Bukkit build and configuring all the plugins that you want can be a difficult process. Usually you should look at all the plugins that you have downloaded, and see what versions they support. Then look for a preferred build of Bukkit that is very close to, but not less than, those version numbers.
▫ Rename the downloaded JAR to craftbukkit.jar
▫ [Windows] Create a new text file inside the Server directory and call it start.bat
▫ [Windows] Right click the file, click edit, and then paste the following into the file:
java ▫Xmx1024M ▫Xms1024M ▫jar craftbukkit.jar noggui
▫ [Windows] Save the file the close Notepad.
▫ [Mac] Open TextEdit, create a blank document, then paste the following in:
cd /Path/To/Server/
java ▫Xmx1024M ▫Xms1024M ▫jar craftbukkit.jar nogui

▫ [Mac] Press Shift+Command+T to convert the document to plain text, and the save it as start.command
▫ Double click the start.bat or start.command file inside the Server directory to launch the server.
▫ The server will start creating files inside the Server directory, load all your plugins, create the plugin config files, and will generate a world.
▫ Once it finishes everything that it is doing, type stop into the Command Prompt or Terminal.
▫ Now is the time to configure all your plugins. Setting plugins up is up to you, as every plugin is different and there is no way I can cover every one. Most developers have an extensive wiki or an explanation on their release thread.
▫ Open Minecraft, select Multiplayer, and set the server IP as localhost to test your server.
▫ When you are done, open the Command Prompt or Terminal window that came up and type stop.


Section 2: Port Forwarding
▫ Find out the brand and model number of your router.
▫ [Windows] Open Command Prompt and type in ipconfig /all
▫ [Windows] Look at the IPV4 address on the list, write down the numbers on that address.
▫ [Mac] Open Terminal and type ifconfig, then look at inet under en1
▫ [Mac] Copy down the four sets of numbers directly in front of inet
▫ Head over to Port Forward, scroll down, and select your router from the list at the bottom of the page.
▫ Skip the advertisement, and then click the Default Guide link.
▫ Follow the instructions there, setting the port to forward as 25565, and the local IP as the numbers that were copied in the above steps.
▫ Save your work and exit your router.


Section 3: Letting Other Users Connect To Your Server
▫ Head over to WhatsMyIP and find out your external IP address.
▫ If all went well, people should be able to connect to this IP. Start your server and give this address to people to test it out.
Prerequisites:
▫ A powerful computer.
▫ A decent network connection.

any examples/further info of said prerequisites?
Quote Originally Posted by Jabuuty671 View Post
Prerequisites:
▫ A powerful computer.
▫ A decent network connection.

any examples/further info of said prerequisites?
Network Upload/Download > 5 MB/s
RAM > 3GB
Processor > Core 2 Duo 2 GHz


Just estimates off the top of my head. I can support about 6 players on my system with 4 GB of RAM, and a 2.53 GHz Core 2 Duo.
Min dedicated server reqs: 2gb ram
core: duel core at least. (laptops, at least one from 1.5 years ago.)
net : if you can upload at 60Kb/s, thats 10 people.
Quote Originally Posted by *****179 View Post
Min dedicated server reqs: 2gb ram
core: duel core at least. (laptops, at least one from 1.5 years ago.)
net : if you can upload at 60Kb/s, thats 10 people.

You heard it form this man himself. Dial up connection is required, and your processor core must be in the middle of a duel.
i must admit this doesnt work for me..

the java ▫Xmx1024M ▫Xms1024M ▫jar minecraft_server.jar nogui

little square parts are apparently the problem
the start.bat does nothing

also i noticed the bukkit one says nogGui with 2 g's
and when i run craftbukkit javaw appears in my processes, whereas with start.bat it doesn't
Quote Originally Posted by Hello World View Post
Good tutorial to help noobs out. You should put this in. Can I host a Minecraft Server?ⓘ
It helps with how many ppl you can host lagless.

Also you should include how to get a static IP.
im not a noob but thanks for the link :P
i got 8 and thats more than enough.


Quote Originally Posted by gr33nd3v1l View Post
i must admit this doesnt work for me..

the java ▫Xmx1024M ▫Xms1024M ▫jar minecraft_server.jar nogui

little square parts are apparently the problem
the start.bat does nothing

also i noticed the bukkit one says nogGui with 2 g's
and when i run craftbukkit javaw appears in my processes, whereas with start.bat it doesn't
nogui means its invisible. ur supposed to not be able to see anything.
Quote Originally Posted by gr33nd3v1l View Post
i must admit this doesnt work for me..

the java ▫Xmx1024M ▫Xms1024M ▫jar minecraft_server.jar nogui

little square parts are apparently the problem
the start.bat does nothing

also i noticed the bukkit one says nogGui with 2 g's
and when i run craftbukkit javaw appears in my processes, whereas with start.bat it doesn't
cuz you gotta put stuff in the .bat, and if you did then, well pm for more helpos
Good tutorial to help noobs out. You should put this in. http://canihostaminecraftserver.com/
It helps with how many ppl you can host lagless.

Also you should include how to get a static IP.
But if you don't own a dedicated IP address, the IP of the server changes, because your IP changes every 24/48 hours :O
Quote Originally Posted by Nerd_01 View Post
But if you don't own a dedicated IP address, the IP of the server changes, because your IP changes every 24/48 hours :O
@Nerd_01



That's why we have trusty ol' static IPs.

OOOOOOOOOOOOOOOOOOOOOOOOOooohhhh didn't know those were
can cracked minecraft work?
java ▫Xmx1024M ▫Xms1024M ▫jar craftbukkit.jar noggui

I thought it was 'nogui' not 'noggui'
Posts 1–15 of 21 · Page 1 of 2
This thread is closed for replies.

Tags for this Thread

None

Talk with us