Tutorial How to make a Minecraft Server without Hamachi

dicamarques

Definitely not Bruce Wayne.
OP
Member
Joined
Jun 25, 2010
Messages
1,070
Trophies
0
Location
Your computer's Recycle Bin
Website
www.google.com
XP
1,402
Country
Portugal
Introduction

So you love minecraft and you host a little server for you and your friends, but then comes hamachi which makes everything slower (lag), if you have these types of problems (or if you are tired of hamachi) this guide is for YOU!

Stuff You Need

Preparing the environment

Ok after you install your OS in your computer and installing Java and Minecraft its time for making your server:
  1. Create a folder in your computer (it can be somewhere in your desktop for example)
  2. Go to dl.bukkit.org (downlod link above) and download the latest recommended build
  3. After that create a new notepad and add this inside:
    Change -Xmx****M to a value of ram you want to alocate for your server (java 32bits can only use a max of 1gb (1024M))
    FOR JAVA 6
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    FOR JAVA 7
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
  4. Now save it as .bat
  5. Double Click it and let the server generate the map and the files (it may take 3min to boot up for the first time)
  6. Now close the server by typing " Stop " on the console
Configuring your server


Congratulations you have a functional server but nobody can connect to it :D

  • In your server folder you'll see a file called " server.properties ", open it with wordpad
  • You'll see something like this: (leave online-mode=true if you want to use your server only with paid accounts and not cracked)
    Code:
    allow-nether=true
    level-name=world
    enable-query=false
    allow-flight=true
    server-port=25565
    level-type=DEFAULT
    enable-rcon=false
    level-seed=
    server-ip=
    max-build-height=256
    spawn-npcs=true
    debug=false
    white-list=false
    spawn-animals=true
    online-mode=false
    pvp=true
    difficulty=1
    server-name=Hello World :D
    gamemode=0
    max-players=20
    spawn-monsters=true
    view-distance=10
    generate-structures=true
    motd=Add a message describing your server here!
  • You just need to change the following values:
    - server-ip= (leave blank)
    - online-mode=false
    - server-name= (give it a name :P)
    - motd= (describe the server)
  • Now boot your server, and then go to your minecraft and go to the multiplayer, the ip for YOU that is hosting the game is going to be " localhost "
  • See if everything is alright and try closing your server using the in game chat by typing " /stop "
Making your server accessible from anywhere in the world!!!

You've made it, you have a server but now only YOU can access it, so let's move on:

  1. Go to www.no-ip.com and register on that website (don't worry it's free)
  2. After registering login and then add a host by clicking "Add a Host" (pretty obvious :P)
  3. On this page your are only going to change one thing:
    - "Hostname", Type the name you want for your ip and select a No-ip Free domain from the box on the right
  4. Now hit "create host" and your almost done :D
  5. You remember the D.U.C. in the beginning? I hope you have downloaded it because we are going to need it now, anyway download it and install it
  6. Enter your login and password in the box and your done.(REMEMBER: You must have this running every time you turn your server on otherwise nobody can connect to your server!) Edit: (Well not ALL the time because your external ip might not change for weeks, or for some people it can change evyday, it differs from ISP to ISP)
Your almost done


Now we need to port forward your router otherwise nobody can connect to your server even using your no-ip link.

Option 1#
See this link: http://gbatemp.net/threads/port-forwarding-why-and-how.331901/ (thank you Rydian)

Option 2#
  1. Go to www.port-forward.com and on your left side select your router brand and model,
  2. After that see if you find Minecraft on the gigantic list
  3. Follow the guide knowing that minecraft uses the port 25565, you can change it on your server.properties files, but when you give the link to somebody you have to add this ": (the port your using) " For example: lasthopecraft.servebeer.com:25585
  4. After messing with your router boot your server once again and then go to this site canyouseeme.org, and in the box add your Port (25565), if you did everything correctly it you should get a Green Word saying that can see you.
And there you have it now you just need to give the ip you created in no-ip.com to your friends and say good bye to hamachi! :rolleyes:
 

dicamarques

Definitely not Bruce Wayne.
OP
Member
Joined
Jun 25, 2010
Messages
1,070
Trophies
0
Location
Your computer's Recycle Bin
Website
www.google.com
XP
1,402
Country
Portugal
Also, you should add a basic tutorial on plugins (Essentials? Worldguard? PEx?)
This is a basic tutorial, for small servers for playing with a few friends withou too much lag, but I like the idea :D I also need to learn how to use some plugins. But its noted :)
 
  • Like
Reactions: Margen67

Rydian

Resident Furvert™
Member
Joined
Feb 4, 2010
Messages
27,880
Trophies
0
Age
34
Location
Cave Entrance, Watching Cyan Write Letters
Website
rydian.net
XP
8,904
Country
United States
In general the easiest server mods to use are bukkit plugins, since installation is as easy as dropping some .jar files into the plugins folder and restarting the server.
http://plugins.bukkit.org/
Once the server has run and found the plugins, it'll generate each plugin's config file (and a folder with extra data if the plugin needs it).
You can edit the plugin settings and restart the server software to apply everything.
However some plugins want/need some sort of permission setups, and that's a more in-depth, annoying process.

Of course, this relies on bukkit being updated for your minecraft version, as it's always slow to update (for legit reasons, though).
 
  • Like
Reactions: Margen67

dicamarques

Definitely not Bruce Wayne.
OP
Member
Joined
Jun 25, 2010
Messages
1,070
Trophies
0
Location
Your computer's Recycle Bin
Website
www.google.com
XP
1,402
Country
Portugal
If you want you can use the beta build, its a bit stable but you can use it until the recommended build is out.
http://cbukk.it/craftbukkit-beta.jar
"A Beta Build is in between a developer build and a Recommended Build. These builds simply work and are promoted much more frequently than a Recommended Build." from Bukkit Forums
 
  • Like
Reactions: Margen67

dicamarques

Definitely not Bruce Wayne.
OP
Member
Joined
Jun 25, 2010
Messages
1,070
Trophies
0
Location
Your computer's Recycle Bin
Website
www.google.com
XP
1,402
Country
Portugal
When i join my server, it says Failed to login: Bad Login
Help! I did everything!
Are you using the cracked version or the premium version of minecraft? If you use the cracked make sure that on the server.properties file the option online-mode= is set to false.
 
  • Like
Reactions: Margen67

dicamarques

Definitely not Bruce Wayne.
OP
Member
Joined
Jun 25, 2010
Messages
1,070
Trophies
0
Location
Your computer's Recycle Bin
Website
www.google.com
XP
1,402
Country
Portugal
Is it possible to make another server with no-ip?
On the same machine? Yes, but beware mc servers need alot of ram and cpu so becareful. With diferent ip's? Yes, you can have up to 3 free ips on no-ip. If you add more servers give them diferent ports on the server.properties and on the router
 
  • Like
Reactions: Margen67
General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: https://i.imgur.com/AuFG3Di.jpg