How to make a Minecraft Server without Hamachi

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,096
Trophies
1
Location
Your computer's Recycle Bin
Website
www.google.com
XP
1,935
Country
Portugal
You might want to add that it is advisable to change the allocated RAM (in the batch file) to at least 2GB, preferably 3 or more.
Thanks for the tip but i tried to make this tutorial as simple as possible, its not for making 30+ players servers, its for a couple friends that want to play minecraft without lag issues, but i'll had it anyways :)
 
  • Like
Reactions: Margen67

Daagak01

New Member
Newbie
Joined
Jun 9, 2013
Messages
1
Trophies
0
XP
52
Country
When you say small server, how many ppl do you think i can fit inside with no trouble (lag)? Also is there any danger of someone hacking my computer through my server?

Thnks :D
 
  • Like
Reactions: Margen67

dicamarques

Definitely not Bruce Wayne.
OP
Member
Joined
Jun 25, 2010
Messages
1,096
Trophies
1
Location
Your computer's Recycle Bin
Website
www.google.com
XP
1,935
Country
Portugal
When you say small server, how many ppl do you think i can fit inside with no trouble (lag)? Also is there any danger of someone hacking my computer through my server?

Thnks :D
As rydian said it depends on your upload and computer specs. If someone can hack you through your server, theres a small chance but if the server is for you and a few friends theres not much of a problem ;)
 
  • Like
Reactions: Margen67

Genisay

New Member
Newbie
Joined
Jan 11, 2015
Messages
1
Trophies
0
Age
38
Location
Portland, Oregon
XP
52
Country
United States
What if you can't actually port forward your router? So far, that has been the biggest reason I've had to use hamatchi, because the router I have doesn't allow port forwarding. I've looked over it's specs several times, and there doesn't seem to be a way to do it.

As it is, though, I haven't been able to run my server in some time, not since right around when MC Realms first started up. At first, I just couldn't get any of my friends into the game. Now even I can't join the server. I even tried with older sever .jars, but with no luck. I know it wasn't Hamatchi's fault, as I've never had an issue with it, but I've tried looking this up several times, and have had no luck finding a solution.
I even tried asking the chat help volunteers on Mojang.com, but as soon as they heard Hamatchi, they started treating me like I didn't know anything about what I was doing, despite having run a server for almost two years, and pretty much were blaming it all on Hamatchi and wouldn't even touch the idea that it was some how MC's or it's servers faults, even though I knew, for a fact, that Hamatchi was not the culprit and never has been.

And....last question about doing this method.....can you play sever maps you have created that did not use bukkit? As far as I know, you can't yet upload independent server maps to Realms, even if they have not been modded, only single player maps.
 
  • Like
Reactions: Margen67

dicamarques

Definitely not Bruce Wayne.
OP
Member
Joined
Jun 25, 2010
Messages
1,096
Trophies
1
Location
Your computer's Recycle Bin
Website
www.google.com
XP
1,935
Country
Portugal
As it is, though, I haven't been able to run my server in some time, not since right around when MC Realms first started up. At first, I just couldn't get any of my friends into the game. Now even I can't join the server. I even tried with older sever .jars, but with no luck. I know it wasn't Hamatchi's fault, as I've never had an issue with it, but I've tried looking this up several times, and have had no luck finding a solution.
I even tried asking the chat help volunteers on Mojang.com, but as soon as they heard Hamatchi, they started treating me like I didn't know anything about what I was doing, despite having run a server for almost two years, and pretty much were blaming it all on Hamatchi and wouldn't even touch the idea that it was some how MC's or it's servers faults, even though I knew, for a fact, that Hamatchi was not the culprit and never has been.

And....last question about doing this method.....can you play sever maps you have created that did not use bukkit? As far as I know, you can't yet upload independent server maps to Realms, even if they have not been modded, only single player maps.
The first question I do is, do you play a pirated or original minecraft? Because you might have a option enabled on bukkit.
You can use whatever maps you have wherever you want :P
 
  • Like
Reactions: Margen67

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    The Real Jdbye @ The Real Jdbye: you can fap to your favorite character without it being gay