Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all,
Vanilla are planning an update to the site on April 24th (next Wednesday). It is a major PHP8 update which is expected to boost performance across the site. The site will be down from 7pm and it is expected to take about an hour to complete. We appreciate your patience during the update.
Thanks all.

Quick Guide to Server Hosting

  • 24-02-2011 6:48pm
    #1
    Moderators, Technology & Internet Moderators Posts: 17,130 Mod ✭✭✭✭


    This little guide will hopefully help anyone interested in hosting their own Irish servers, or using a Virtual Private server to run off.

    There are no minimum specs detailed for running a server, but a dual core PC, 512mb ram and about 500mb of hard drive space is recommended.

    Beginners Guide

    Hosting a home server
    Probably the easiest way to host a server, but it has many disadvantages and disadvantages:

    Advantages:
    - Quick and easy to set up
    - Easy managing and modifying of server

    Disadvantages:
    - Changeable IP unless managed otherwise
    - High latency and packet loss possible on other clients due to home connection speed limitations


    1. So, let's start a basic server! First of all, get the Minecraft_server.exe/jar file from the website here, .exe is for Windows and .jar is for OSX/Linux systems. There are known issues with the .jar server file running on Windows.

    2. Update your Java if needed first!

    3. Double click the server file and let it run! The server will generate the necessary files to modify your server, so make sure the server file is in a dedicated folder at least.

    4. Once you've done that, you're best to close off the server window briefly, to modify your server! Look for server.properties and edit it with wordpad or something similar. You'll see a set list of commands in there.

    level-name=world //This is the name of the world's folder in your server folder
    hellworld=false //This is the nether. Currently in multiplayer it's semi broken
    spawn-monsters=false // This obviously allows the spawning of mobs or not
    monsters=true //This allows mobs on or off, its NOT the same as SPAWNING them.
    online-mode=true //This is to enable an online server. To run LAN, just set this to false
    spawn-animals=false //This allows animals or not in the server
    pvp=false //This allows player vs player hit damage.
    max-players=50 //Maximum number of players allowed on the server
    server-ip= //Your IP address of the server. LEAVE THIS BLANK IF YOU'RE ON A CHANGEABLE IP
    no-animals=false //This is again not the same as spawning animals. You can give yourself cage spawners, but they wont work if this is set to true.
    server-port=25566 //The port of the server. Default is either 25566 or 25565. If you want to run multiple servers on one PC, use different ports to differentiate servers.
    white-list=false //This determines whether anyone can enter the server or limited to a list of players you have input.
    spawn-protection=16 //Spawn protection is the amount of blocks in a radius where enemies cannot deal damage to you.

    5. Now, you want to admin the server? Great! Open ops.text and add your name to a line. If you want other admins on the server, just add more names to that line, otherwise type an admin can type /op <playername> in server

    6. white-list.txt allows you to add players to the server list if whitelist is enabled. Otherwise type /whitelist add <playername> in game.

    This is the basics of the server. Enjoy!


    Running a Virtual Private Server

    Running a VPS is a more effective way to run a Minecraft server. It boasts many advantages and disadvantages.

    Advantages:
    -
    More stable dedicated servers (including linux!)
    - Lower latency and capability of higher player numbers in a server at once
    - Better compatibility with modded servers and plugins (tutorial in advanced thread coming soon!)
    - Static IP

    Disadvantages:
    - Slightly more complicated to moderate forums
    - Knowledge of the OS it's being hosted on

    Now, lets start off. VPS system can be quite expensive, but the better spec the better the experience. Do not go for 128mb/256mb RAM VPS systems, you'll limit yourself and your players to a choppy and unplayable experience. Hard drive space isnt essential and Minecrafts bandwidth usage isnt too high either (except in the case of 10+ active players at once).

    I recommend a Linux VPS system over the Windows one. There are known issues as I've said with the .jar files in Windows, especially if they're modded. So I'll be tutting on the Linux versions of the server in this tutorial.

    1. So, now you've bought your VPS server, you've got a login and password. Now what? Now we get our hands dirty! Grab yourself a copy of PuTTY and Filezilla. PuTTY will help us remotely issue the server commands, and Filezilla will help modify, upload, remove files easily.

    2. Run PuTTY and enter your IP address details, you'll be then asked for your username and password, enter those. You're on your VPS server now!

    Now, for a few basic commands and explanations:

    cd this directs your console to a certain address. For example if minecraft is in files/minecraft, type cd files/minecraft to direct the console there.
    mkdir This creates a directory in the folder your console is currently pointing at.
    wget This will download the file in question after the hyperlink you put after wget. So for example wget www.minecraft.net/minecraft-server.zip will download the minecraft-server.zip file to the pointed folder.
    screen Runs a program/file from the pointed folder with the ability to close the terminal (PuTTY)
    reboot Reboots the OS


    3. That's the basic commands. There's some others but we'll look into them later. So, lets create a folder now that we're logged in!
    mkdir minecraft
    

    4. So now we've created a Minecraft folder in the root directory. Let's point to the folder.
    cd minecraft
    

    5. Now we're in. It's empty. Lets fill it. There's 2 ways to do so:
    -
    wget http://www.minecraft.net/download/minecraft_server.jar
    
    - Open Filezilla, enter your IP, username and password, download the files, or even a previously made server, and literally drag them into your Minecraft folder.

    6. Nearly there! So now we've got the basic files in. Lets run the server.
    java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
    

    where
    java is the executed form of file
    xmx and xms are the variables, the RAM allocated to the server
    jar is the type of file being executed
    nogui is no interface

    7. You should see your region being rendered. You're done! Your dedicated server is up and running. However when PuTTY is closed, so does your server. So to run the server indepentantly,
    screen -S minecraft java -Xms1024M -Xmx1024M -jar minecraft_server.jar nogui
    

    screen will run the server independently. We're done!

    Filezilla will allow you to change/modify files and reupload them on the fly. Some mods (explained in another thread) allows you to make changes on the fly, some don't, like the server.properties files. You may need to stop and start the server. Ingame, type /stop stops your server. So to rerun the server again, just use the above steps again to get it running via PuTTY.

    Advanced Guide

    So assuming you've got your server up and running, its time to take things up to the next level: adding mods to your server!

    If you're here, you'll probably know by now that Minecraft in its beta doesn't have all the features that it could and should have. Modding Minecraft is exceptionally easy, so the amount of variables you can add to Minecraft is huge. Since the beta update, the old main mod (hmod) has died, and Bukkit (CraftBukkit as its called in its infancy), is the main method to adding neat addons to your server. Running the mod is just a simple process of running a modded Minecraft_server.jar/exe file, it behaves the exact same with the added support of plugins.

    So lets get started!


    Modding your Home Server

    Lets get the main mod first. Word of warning before we start: CraftBukkit does not execute in XP. Windows 7/Vista/OSX/Linux builds are required for smooth running of the modded server!

    1. CraftBukkit is constantly updated, but always download the recommended release, found here.

    2. Rename the file to craftbukkit.jar

    3. Place craftbukkit.jar into your root directory of where your Minecraft server folder is.

    4. Create a new folder and name it plugins.

    5. Run craftbukkit.jar!

    You've now got a modded server running with the same world that where you left off before it was modded. Of course, a modded server also needs plugins, basically extra features added into the game. So lets add some plugins.

    6. CraftBukkit Plugins List is a comprehensive list of plugins released for the craftbukkit mod. Be aware that Minecraft updates can break the plugins, so check the list regularly to see if your plugin has been updated.

    7. So I'm going to take Essentials as our example. Essentials adds in features like /sethome, /setspawn, the kit features and the now outdated whitelist feature (added in beta 1.3 Minecraft vanilla. Download the latest release build here

    8. Extract and place the jar files in the plugins folder.

    9. Run craftbukkit.jar once and stop the server. There's now config files in the plugins folder, for you to edit to your hearts contempt. See the tutorial guide on the link provided for more information.

    10. Once you're happy with the edited configs for the plugins, run craftbukkit.jar and enjoy the modded server


    Of course there's many more plugins, have a look at the list and download whatever you want and run them offline for testing if you wish. NOT ALL PLUGINS ARE COMPATIBLE WITH ONE ANOTHER. Other than that, just read the tuts on each plugin and you're sorted!


    Modding your VPS Server

    If you're here, you already know the basics for your VPS server hosting. Let's get started via Linux!

    1. Download the craftbukkit jar file once again.

    2. Open Filezilla and proceed to login. Navigate to your minecraft server folder, rename the downloaded file to craftbukkit.jar and copy it to the root of your Minecraft folder. Create a plugins folder.

    3. Log into PuTTY, point the terminal to your Minecraft folder. Now run:

    Code:

    screen -S minecraft java -Xms1024M -Xmx1024M -jar craftbukkit.jar nogui

    Great, you've just ran the craftbukkit mod independantly. Stop the server by typing stop in the terminal or /stop ingame. Let's add some plugins!
    4. CraftBukkit Plugins List is a comprehensive list of plugins released for the craftbukkit mod. Be aware that Minecraft updates can break the plugins, so check the list regularly to see if your plugin has been updated.

    5. So I'm going to take Essentials as our example. Essentials adds in features like /sethome, /setspawn, the kit features and the now outdated whitelist feature (added in beta 1.3 Minecraft vanilla. Download the latest release build here

    6. Extract and place the jar files in the plugins folder. via Filezilla.

    7. Run craftbukkit.jar again as seen above. Stop the server once again if needed!

    8. In the plugins folder there is now generated config files for you to edit. Edit with wordpad as the default editor, notepad can be a mess.

    9. Once you're done editing, run the craftbukkit.jar file again and you're on your way to a safe protected and fun environment!


    Of course there's many more plugins, have a look at the list and download whatever you want and run them offline for testing if you wish. NOT ALL PLUGINS ARE COMPATIBLE WITH ONE ANOTHER. Other than that, just read the tuts on each plugin and you're sorted!


    I hope this tutorial was short, clear and concise to users needs! Any questions, feel free to post them here.


«1

Comments

  • Closed Accounts Posts: 22,569 ✭✭✭✭Tallon


    Awesome stuff man

    I could have done with this guide when I started, but it will deffo help people in future :)


  • Closed Accounts Posts: 8 Mine_N_Stuff


    thanks man


  • Closed Accounts Posts: 26 Wezo1994


    Very nice guide!


  • Closed Accounts Posts: 10 emply113


    Nice!! but may i know how to add mods in game.! I got my server running and i want to know how to add mods, such as locking chest, anti-graffiti, colored names...etc.


  • Closed Accounts Posts: 28 Fisheh


    nice but i cant host off my pc ... my pc`s CPU is like... wow 100 xD


  • Advertisement
  • Closed Accounts Posts: 38 whiteboii


    nice guide but the servers i host allways lagg alot for me think its my computer


  • Closed Accounts Posts: 3 LiverpoolLad94


    thanks for this.. im looking into hosting a @ home server for me an a few friends an this thread helped alot explaining everything


  • Moderators, Technology & Internet Moderators Posts: 17,130 Mod ✭✭✭✭cherryghost


    Well if you host @ home a 3mb connection would probably get you 4 players online lag free. Anything higher things get a bit complicated and frustrating.


  • Closed Accounts Posts: 28 PredaToRxReCoN


    very helpful thanks for the tut


  • Closed Accounts Posts: 42 bigmanjan


    very help ful thanks :)


  • Advertisement
  • Closed Accounts Posts: 10 FloodedAsylum


    Thanks for the help man :D


  • Closed Accounts Posts: 32 Beatalls


    Great post, you can of course also use hamachi


  • Closed Accounts Posts: 26 SimpleOrder


    Great post man, very helpful.


  • Closed Accounts Posts: 3 Raymond236


    Thanks man, you really helped me!


  • Closed Accounts Posts: 1,048 ✭✭✭jolley123


    Whenever I double click the Minecraft_serve.exe, i get a message that says

    Do you want to save this file, or find a program online to open it.

    I've saved it, but then I don't know what to open it with

    I've clicked find, but then I get taken to a shell.windows.com where I'm told a lot of information I don't understand.

    Any help would be appreciated.


  • Registered Users Posts: 7,674 ✭✭✭DirtyBollox


    have you tried downloading the .jar file instead?


  • Closed Accounts Posts: 1,048 ✭✭✭jolley123


    have you tried downloading the .jar file instead?

    Yes, but what happens then is some sort of java script opens with a column that keeps on scrolling down with technological mumbo jumbo. I left it scroll for about 20 mins but it just won't stop.


  • Registered Users Posts: 216 ✭✭dre_jspeed


    Right lads noob question, so please don't laugh to hard. :)
    Right i have a private server up and running but can some please explain to me what a creative is and what would be the setting for one. :confused:

    Thanks
    Andy


  • Moderators, Technology & Internet Moderators Posts: 17,130 Mod ✭✭✭✭cherryghost


    For purely creative purposes, stop the server, open up server.properties and set monsters/spawn monsters to false. You don't want a creeper running around blowing up your village. ;) If animals annoy you, disable them too.

    Admins of a server automatically have basic commands to give themselves any block for up to 64 pieces. ops.txt gives a list of admins on your server. So you can add admins by typing usernames on each line, or /op <playername> whilst in the server (assuming you're an admin, that is). That's the basic running of the server.

    @jolley, what OS are you on?


  • Registered Users Posts: 216 ✭✭dre_jspeed


    Thanks Cherryghost, i had the ceepers turn off already was sick of them blowing up the front door for my house. Didn't know about the ops.txt, must sort that out this evening.


  • Advertisement
  • Registered Users Posts: 216 ✭✭dre_jspeed


    Sorry for been a pain today guys but what plugins are you using to give yourself "kits" and "spawn home".

    Cheers
    Andy


  • Moderators, Technology & Internet Moderators Posts: 17,130 Mod ✭✭✭✭cherryghost


    Sorry for the late reply.

    For those commands we use a plugin called Essentials, it can only be used using the Craftbukkit mod though. Essentials is basically 4/5 plugins wrapped into one, very handy.

    If you're not keen on using modded server files, try Simpleserver. It was the system we were on before and its similar in a few ways to Essentials, without the fiddling around with the plugin files :)


  • Registered Users Posts: 216 ✭✭dre_jspeed


    Thanks once again ghost, while give it ago tomorrow.


  • Registered Users Posts: 5,977 ✭✭✭Soby


    Having trouble with craftbukkit. Ive got my basic server up and running.Downloading and saved the craftbukkit-0.0.1-SNAPSHOT.jar from the website.But am i wrong in just trying to double click this to get it work or what.Bit lost with the plug ins side of things


  • Moderators, Technology & Internet Moderators Posts: 17,130 Mod ✭✭✭✭cherryghost


    Soby wrote: »
    Having trouble with craftbukkit. Ive got my basic server up and running.Downloading and saved the craftbukkit-0.0.1-SNAPSHOT.jar from the website.But am i wrong in just trying to double click this to get it work or what.Bit lost with the plug ins side of things

    If you're on windows, bukkit just runs in the background as javaw.exe, so you wont see any interface whatsoever. make a plugins folder where you have craftbukkit and but the .jar plugins in there. Then run craftbukkit


  • Registered Users Posts: 5,977 ✭✭✭Soby


    Nm pc cant handle craftbukkit :(.Ah well


  • Registered Users Posts: 541 ✭✭✭TheBegotten


    Bit of a noob question, but is it possible to play minecraft on the same machine you are running the server on? This would be a home server with max 3 players (me, my brother and my friend). Broadband speed varies wildly from 1.7 to 4 mbs. Would this eat up RAM/CPU or would it be possible. It's off a 2GB Windows 7 laptop.


  • Moderators, Technology & Internet Moderators Posts: 17,130 Mod ✭✭✭✭cherryghost


    Yeah you can indeed. You don't even need an internet connection. You can connect to the router but set up the properties not to have online mode. Everyone in the same house can still connect and have up to 54mpbs speeds, so lag isn't an issue. The performance of your laptop will have influence on how fast everything renders.


  • Closed Accounts Posts: 477 ✭✭davidk11811


    Whenever I try running the Minecraft_server.exe/jar file it keeps on scrolling down with a load of random numbers. Is it suppose to do this?


  • Advertisement
  • Closed Accounts Posts: 22,569 ✭✭✭✭Tallon


    Yes, it's creating the spawn etc...


Advertisement