IronNoob

Please login or register.

Login with username, password and session length
Advanced search  

News:

Migrated to dedicated hosting. Post any weirdness you observe in the Lounge.

Pages: [1] 2

Author Topic: How To Create & Run A Minecraft Server  (Read 2333 times)

0 Members and 1 Guest are viewing this topic.

Dartz654

  • Guest
How To Create & Run A Minecraft Server
« on: August 01, 2011, 10:29:26 pm »

Completely written by Dartz654

Introduction
Before you even think about getting the software, staff, and plugins needed to properly run a Minecraft server you need to know what type of server you want to run. There are two main types, Survival and Creative. Survival servers are usually against spawning items, have PvP & mobs turned on, and are for the more hardcore players. Creative servers normally allow the spawning of items in a safe world free of PvP and horrendous creepers, allowing the construction of magnificent creations. Maybe you'd like to make a mix of the two, be creative. It's your server after all!

Bukkit vs. Vanilla
Once you've decided on the type of server you want to make, you need to decide what software you want to run the server on. Minecraft server software regulates pretty much everything about your server - it's the core of it. Bukkit is, in my opinion (and a TON of other people's opinion, as well) the best software to run your Minecraft server.

An alternative to Bukkit is the vanilla software provided by Notch. Some upsides of using the vanilla software is that it A) is always up to date, and B) has less bugs than Bukkit. Bukkit, on the other hand, has been criticized for not having a stable release (see below) the second a new Minecraft update comes out, and has been known to have many more bugs than the vanilla software that Notch provides.

Why Bukkit?
This tutorial, although, only covers how to set up your server with Bukkit. Despite the few cons of Bukkit, it has many more pros than the vanilla software. Bukkit allows the use of addons to your server, making it unique and more fun. If you have a proficient knowledge (or a basic one, even, developing plugins is really easy!) of the Java programming language, you can develop your own plugins for your Bukkit server.

Example of such plugins are
> BigBrother, that track every single block deleted and placed, allowing you to spot griefers.
> WorldEdit, which lets you easily edit your terrain and buildings.
> Essentials, which comes with built-in features such as a private messaging system, a message of the day, an extensive addition to Notch's bland admin system, and much much more.

There are thousands of plugins available here, all ready to be added too your server - with new ones being added every day.

Machine Requirements
Once you've decided what you want your server to be like, and what software your going to use to run it, you need to decide if your machine is capable of hosting a Minecraft server. There are two main aspects to this - your Internet speed and your computer's RAM. To find how much RAM your computer has, open the Start Menu, click Control Panel, click System and Security, then click "View amount of RAM and processor speed" under the 'System' category.

If you want to host a Minecraft server with minimal amount of lag, I recommend running it on a server with at least a usable 4GB of RAM, on a 64-bit operating system. To find your internet speed, you can click here. I'm no networking master, but I know that my horrible internet (5kb/s up, 50kb/s down) is not ideal for hosting a Mineraft server. To get a detailed analysis of if you can run a Minecraft server with or without lag, click here. Don't even front, you can run a Minecraft server on almost any machine with Java installed, your internet speed and RAM just effect the lag for other users.

Virtual Private Servers (optional)
If you're not comfortable running a Mineraft server on your computer, and are willing to spend a few dollars, read on. If not, you may entirely skip this section.
If you can't run a Minecraft Server, you can pay someone to do it for you. I've used Servercraft to host my Minecraft server before, and I was satisfied with my results. Another Minecraft server provider, that I've never used but has heard as being good can be found here. If your more savvy with computers and Linux commands, you may want to look into purchasing a VPS to run your server. Click here for a cheap but slow/bad uptime VPS provider, or click here for an expensive but fast VPS provider. If you choose a hoster that isn't listed here, I reccomend having at least 512 MB RAM for small servers, and 2GB RAM for bigger servers. Some servers, though, such as Buxville or Minerealm are massive and are on 16GB or 64GB servers, which (for several hundred dollars) can be purchased from Rackspace or Softlayer. Should you buy a VPS and don't know how to set it up into a Minecraft server, feel free to message me and I can set it up via Teamviewer.

Hosting the Server (finally!)
Finally, the part we've all been waiting for. The first thing your going to want to do is download the server software. As of writing this guide for the first time, the most recent Bukkit build is #1000, compatible with Minecraft version 1.7.3. If this is the most recent version, click here for a direct link. If it is not, you can go to Bukkit's official website, and on the right side of your screen (where it says 'Reccomended Builds') and get the most recent version.

Once you have the .jar file downloaded (name something like craftbukkit-0.0.1-SNAPSHOT.jar), create a folder on your Desktop (or anywhere else) named Minecraft Server and drag that into it. Next, create a .bat file named "RUN.bat", and inside it put this:

Code: [Select]
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
PAUSE
Note (copied from bukkit's help page): If you are running java in 32bit mode on a 64bit machine, change %ProgramFiles% to %ProgramFiles(x86)%

Save the file, and make sure it is saved as a Run.bat, NOT Run.txt or Run.bat.txt. Now, when you do this a command prompt should pop up. If you close this command prompt, your server will shut down without being saved. You must keep the command prompt running at all times on your computer, or your server will be offline. If you do want to close your server, type the command "save-all" (no quotes), and then "stop". This will ensure that all your edits and creations on that server is saved. Additionally, you may get a plugin (see below) that automatically saves over a period of time.

The first thing you should do after running your server for the first time is let it load the world and the nether. Open Minecraft, and connect to the Multiplayer server's IP: "127.0.0.1". This is YOUR server. Look around and see if you like the world. If it doesn't match your likings, stop the Minecraft server (with the command "stop") and delete the "world" folder in the folder Minecraft Server, then re-run RUN.bat.

Configuring Server Properties

Once you've found a world that you've liked, shut it down (make sure you use "save-all"!) then open the file "server.properties" inside your Minecraft Server with a text editor like Notepad.

allow-nether Change this to false if you don't want nether portals to work on your server.
spawn-monsters Change this to false if you don't want aggressive mobs (creepers, spiders, skeletons, etc.) to spawn on your server.
spawn-animals Change this to false if you don't want passive/friendly mobs (pigs, cows, chickens, etc.) to spawn on your server.
max-players This is the number of players that can be connected to your server at once. While the default is 20, I've yet to find a home connection that can support 20 active Minecraft connections at once. If your like me, your server lags a ton with 5 people online.
pvp Change this to false if you want to disable all PvP on your server.
white-list If you'd like to make it where only certain players can enter your server, change this to true then write their names in the white-list.txt file.

Once your edits are done, make sure there aren't any typos (like type treu instead of true) or any stray letters (falsee) then save it. Boot your server back up with RUN.bat, and the server should be done!

Making Your Server Multiplayer (allowing outside connections)
A router-specific guide can be find out here.

To do this, you need to port forward. If you know before reading this that your router doesn't allow port forwarding, you can use Hamachi to allow others connect. You'll rarely find people who will play a server that needs Hamachi due to rumors that it is adware, but if it's just you and your friends you can find tutorials on Google. I've never used Hamachi for Minecraft, so I couldn't tell you how to do it.

Every router is different on how to port forward, but it's usually the same. Go to the URL 192.168.1.1 (may change depending on router, but that's it for linksys and netgear) and log in. The default login combination is admin/admin, or admin/password. You may have to ask your parents, or your ISP, for the login if you don't know it.

Once you've logged in, you need to find the part of the website that allows you to forward ports. For Linksys routers, you hit the tab Application & Gaming.

Once you've found the area where you enter ports, you want to forward the port "25565". This is the port Minecraft servers act on. When it asks what Protocal, you need to hit "TCP & UDP", or "Both" You may need to enter what IP address you want to forward it too, which in that case would be your static IP address. For help on configuring a static IP address, you can click here. Once this is done, save the changes. You may have to reboot your computer or wait a few minutes for the changes to take place.

Adding Plugins To Your Server
Coming eventually!
« Last Edit: August 05, 2011, 08:43:51 pm by Dartz654 »
Logged

Trappingnoobs

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1408
    • View Profile
Re: How To Create & Run A Minecraft Server
« Reply #1 on: August 02, 2011, 05:18:39 am »

+1 For advising against Hamachi.

Using hamachi for things like minecraft is for 8 year old newtards.
Logged
monospaced pl0x





no i am not a troll

ThePighead10

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 92
  • Lua guru and C++ maniac
    • View Profile
    • pighead10's crappy little page
Re: How To Create & Run A Minecraft Server
« Reply #2 on: August 05, 2011, 10:11:43 am »

It took be about five hours to get my Minecraft server up because my crappy router wouldn't let me port forward the standard way. That and it had a different password than the website told me it had, so I used my pro pass guessing skills (i.e. check the top 10 most common password list) and it worked.
Logged
-pighead10, the maker of the best Roblox place with the least amount of visits.

http://pighead10.co.cc/ - Roblox plugins and homemade games

Zontafer

  • Newbie
  • *
  • Offline Offline
  • Posts: 13
  • AndrewTooCool. ATC. Zontafer. Zonty.
    • View Profile
Re: How To Create & Run A Minecraft Server
« Reply #3 on: August 05, 2011, 10:19:20 am »

NUTSHELLED: Here's a good site to find your router's default IP - http://portforward.com after you type it in, the default port for minecraft is 25565 - make this the start and finish of your port. Finally, go to command prompt and type in this: ipconfig
After typing that in, look for IPv4 Address - it should be your default IP, but with different numbers after the last dot. For example, I run a Linksys. My Default IP is 192.168.1.1 - but my IPv4 Address is 192.168.1.103 so that means you change the last numbers to whatever the IPv4 Address is. Lastly, go to WhatIsMyIP.com and what the IP is is the IP of your server. You do NOT type in the server IP in server.properties - leave it blank. Run the server and profitize.
Logged
?-Zontafer-?

Bubby4j

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 80
    • View Profile
    • Xivio World
Re: How To Create & Run A Minecraft Server
« Reply #4 on: August 07, 2011, 12:18:53 pm »

+1 For advising against Hamachi.

Using hamachi for things like minecraft is for 8 year old newtards.
Or for people who can't port forward (like me).
Logged
Scripter. Programmer. Developer.

Trappingnoobs

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1408
    • View Profile
Re: How To Create & Run A Minecraft Server
« Reply #5 on: August 08, 2011, 05:29:13 am »

+1 For advising against Hamachi.

Using hamachi for things like minecraft is for 8 year old newtards.
Or for people who can't port forward (like me).

192.168.1.1
->Port forwarding
->25565, 25565, Both protocols, (cmdprompt->ipconfig->last part of IPv4 address (Scroll up a little)), done

It takes 30 seconds minimum. It's easy.
Logged
monospaced pl0x





no i am not a troll

Dartz654

  • Guest
Re: How To Create & Run A Minecraft Server
« Reply #6 on: August 08, 2011, 05:58:53 pm »

+1 For advising against Hamachi.

Using hamachi for things like minecraft is for 8 year old newtards.
Or for people who can't port forward (like me).

192.168.1.1
->Port forwarding
->25565, 25565, Both protocols, (cmdprompt->ipconfig->last part of IPv4 address (Scroll up a little)), done

It takes 30 seconds minimum. It's easy.

Some routers don't have the option to manually port forward, in which case you'd need to contact your ISP. Some ISPs, though, charge money for port forwarding and some don't even offer that service at all.
Logged

qaz32152

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4425
  • Oh hai
    • View Profile
Re: How To Create & Run A Minecraft Server
« Reply #7 on: August 15, 2011, 11:12:57 pm »

You could buy a new router. Smaller cost than buying a server. Although Hamachi is FREE.

Or even buy a used one from friend or family member. I have an old router I use for my DS.
Logged


Trappingnoobs

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1408
    • View Profile
Re: How To Create & Run A Minecraft Server
« Reply #8 on: August 16, 2011, 02:58:00 am »

+1 For advising against Hamachi.

Using hamachi for things like minecraft is for 8 year old newtards.
Or for people who can't port forward (like me).

192.168.1.1
->Port forwarding
->25565, 25565, Both protocols, (cmdprompt->ipconfig->last part of IPv4 address (Scroll up a little)), done

It takes 30 seconds minimum. It's easy.

Some routers don't have the option to manually port forward, in which case you'd need to contact your ISP. Some ISPs, though, charge money for port forwarding and some don't even offer that service at all.

Well yeah, if the router is ancient, it's not going to, but pretty much any router made in the last, shall we say, 2/3 decade? decade? would support it.
Logged
monospaced pl0x





no i am not a troll

wall142

  • Full Member
  • ***
  • Offline Offline
  • Posts: 198
  • Genius at Your Service
    • View Profile
    • ROBLOX
Re: How To Create & Run A Minecraft Server
« Reply #9 on: November 22, 2011, 07:47:35 pm »

+1 For advising against Hamachi.

Using hamachi for things like minecraft is for 8 year old newtards.
Or for people who can't port forward (like me).

192.168.1.1
->Port forwarding
->25565, 25565, Both protocols, (cmdprompt->ipconfig->last part of IPv4 address (Scroll up a little)), done

It takes 30 seconds minimum. It's easy.
Or for those who can't port forward cause there is already a password on it. Not allowed to reset the network too.
Logged

SBMinecraft

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • View Profile
Re: How To Create & Run A Minecraft Server
« Reply #10 on: January 25, 2012, 02:52:29 am »

Hi Telamon! XD
Logged

yoshiplush2

  • Guest
Re: How To Create & Run A Minecraft Server
« Reply #11 on: September 21, 2012, 12:53:48 pm »

I'm going to bookmark this for when i want to make a minecraft server again.
Logged

Unlmproved

  • Hero Member
  • *****
  • Online Online
  • Posts: 5870
    • View Profile
Re: How To Create & Run A Minecraft Server
« Reply #12 on: September 21, 2012, 12:56:07 pm »

I'm going to bookmark this for when i want to make a minecraft server again.
we dont have to fuckin know
Logged
"This man does not give a 2 shit flying fuck"

xpinkbean

  • Newbie
  • *
  • Offline Offline
  • Posts: 20
    • View Profile
Re: How To Create & Run A Minecraft Server
« Reply #13 on: November 29, 2012, 07:35:26 pm »

Honestly, Minecraft Should have a better way with servers. Its too hard, plus lags Alot...
Logged
Xpinkean

jamjam195

  • RBX Spec Ops
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 9288
  • Why, hello there.
    • View Profile
    • Bobstudios
Re: How To Create & Run A Minecraft Server
« Reply #14 on: November 29, 2012, 11:33:33 pm »

Honestly, Minecraft Should have a better way with servers. Its too hard, plus lags Alot...

No it doesn't.
Logged
Why Hello There.

Alternative: Wopian
Bobstudios | WPM: 81 | World of Wopian
Pages: [1] 2
 

Page created in 0.191 seconds with 21 queries.