Minecraft server basics?

todpod

Golden Member
Nov 10, 2001
1,275
0
76
My son plays minecraft and said about setting up a server for him and his friends how would a person go about that. I have read so stuff. Do I need to host it here or can I host it on a web server or something like that. Just wondering how doable it is.
 

Snock514

Golden Member
Jul 20, 2009
1,071
2
81
You can host it on your computer and they can connect to it with a program I've used called "Hamachi." All you would need is that hamachi program and minecraft installed, no server clients or anything, pretty simple but I'm not sure if it's what you're looking for. My brother and I have used this, there are some decent tutorials on youtube about it.
 

PrincessFrosty

Platinum Member
Feb 13, 2008
2,301
68
91
www.frostyhacks.blogspot.com
You can host a server pretty much anywhere, it's really easy, I have 3 instances running on my server at home which my friends use. You could host one at home on any PC but you'll need to make a few changes to get it running reliably, it means a little bit of network tweaking.

1) Go to the Minecraft website, download the minecraft server exe, put it in a folder somewhere and run it, it will extract all of the files it needs in to that folder. You'll need Java installed on the server for this to run.
2) On the server go into the network options and turn off "get IP address automatically" and then manually assign it an address on your network, this stops the address changing if the computer shuts down.
3) Log in to your router, you'll need to change the network options to stop the router from handing out the server IP address automatically to another computer, you should be able to alter the DHCP range, make sure the server IP lays outside that range.
4) You then need to port forward the port Minecraft uses on your router to allow incoming internet traffic to connect, by default this is TCP port 25565, point this port at the new fixed IP address of the server.
5) The server will likely have a firewall installed windows comes with one by default or you might have a 3rd party one, you need to configure an incoming rule to allow traffic on TCP port 25565 as well.

Once the router and the firewalls are configured people should be able to connect to the server, you'll want to consider some of the server settings.

6) First of all open the file whist-list.txt in the minecraft server folder, add your sons minecraft username there and any friends he wants to be able to connect. If you let strangers connect they may just ruin your hard work,
7) Open the server.properties file in notepad and make sure the "white-list=xxxx" line is set to true, that forces the white list usage.
8) There's a few other options in that file you might want to change you'll have to look up what they mean. One setting is called level-name=xxxx, this is the name of your current level it's used as the seed to randomly generate the world map, so set any name you like.


It's VERY IMPORTANT that you run regular backups of the world once its running this will allow you to restore the world should anyone do something malicious, the server creates a sub folder with the same name as you level-name, all the world data goes here, simply make a copy of that folder somewhere else to backup the world.

It's best to write a script to constantly back it up every x minutes or x hours, if you want to do that let me know and i'll give you an example of mine you can easily modify

If the server you run from also needs to connect to the world just launch a client as normal and use the server address "localhost" or the address 127.0.0.1
 

HydroSqueegee

Golden Member
Oct 27, 2005
1,709
2
71
oh nice, automatic script to back it up. let me get a copy of that please. doing it by hand is a PITA and doesnt happen every day.
 

lord_emperor

Golden Member
Nov 4, 2009
1,380
1
0
You can host it on your computer and they can connect to it with a program I've used called "Hamachi." All you would need is that hamachi program and minecraft installed, no server clients or anything, pretty simple but I'm not sure if it's what you're looking for. My brother and I have used this, there are some decent tutorials on youtube about it.

Why suggest hamachi first? It's much simpler to forward a port than require all users to install hamachi.

Hamachi is for people with no control over their own firewall, but somehow it gets used as a crutch by everyone and their dog just to avoid logging in to their router for 15 seconds.
 

Snock514

Golden Member
Jul 20, 2009
1,071
2
81
Why suggest hamachi first? It's much simpler to forward a port than require all users to install hamachi.

Hamachi is for people with no control over their own firewall, but somehow it gets used as a crutch by everyone and their dog just to avoid logging in to their router for 15 seconds.

It's the only solution I knew of excuse my ignorance.
 

PrincessFrosty

Platinum Member
Feb 13, 2008
2,301
68
91
www.frostyhacks.blogspot.com
oh nice, automatic script to back it up. let me get a copy of that please. doing it by hand is a PITA and doesnt happen every day.

1) Create a new text file and paste the following in

Code:
@ECHO OFF
set dt=%date% %Time%
xcopy "C:\Program Files (x86)\Minecraft_Srv\TrollMountain" "C:\Program Files (x86)\Minecraft_Srv\backup\TrollMountain_%dt:~0,2%.%dt:~3,2%.%dt:~6,4%_%dt:~11,2%.%dt:~14,2%" /E /y /I

2) Change the paths of the map you want to back up and the location you want to store the backups.
3) Save the file and change the file extenion to .bat instead of .txt
4) Then use windows task scheduler to run this task at startup of your computer and every following X minute or X hours.

It will create a new sub-directory inside the backup directory for each individual backup and the folder name will contain a timestamp. You'll have to manage retention yourself so you don't run out of diskspace.
 
Last edited:

Dirigible

Diamond Member
Apr 26, 2006
5,961
30
91
2) On the server go into the network options and turn off "get IP address automatically" and then manually assign it an address on your network, this stops the address changing if the computer shuts down.
3) Log in to your router, you'll need to change the network options to stop the router from handing out the server IP address automatically to another computer, you should be able to alter the DHCP range, make sure the server IP lays outside that range.

Most routers will let you manually assign IP addresses to specific devices so that device always gets the same IP address. Instead of steps (2) and (3), just go in your router and add your server's IP to the set assignment list. I bet that'd usually be easier than your steps 2 and 3.

On my router, it's called "Manually Assigned IP around the DHCP list" under LAN options and you can list 32 devices to each always have their same IP address.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |