Minecraft Private/Dedicated Server Guide (PC)

By   /   5 years ago

If you are a Minecraft addict, you must know how to setup your own private server and how to connect to local servers. This Minecraft tutorial will guide you to make your own Minecraft server so that you and your friends can enjoy private LAN parties.

How to Setup Minecraft Private/Dedicated Server

Step 1|Setup Java (version 1.6) on your System
First of all you need to check which version of Java you are running on. To find this out open Command Prompt and type

java –version

If the result tells you the version of Java is 1.6, you are good to go, skip to step 2.

Otherwise you must download and install Java from here and check its version from command prompt again.

Step 2| Download Minecraft Server Files
Now you need to to download the server file “Minecraft_server.jar” from hereor here.

You will be given a compressed file, which you must extract in a folder named“Minecraft Server”.

Step 3| How to Set Up Minecraft Server
Open the bat file named “Start server.bat” (Run as Administrator in Win7/Vista).
The server will start, generating some new files, in order to configure your server you must edit these files. You will have to shutdown the server first.

Step 4| How to Configure Minecraft Server
Configure your server by opening “server.properties” in notepad.
Change settings as you wish, if you want a private server change Public to False. Other changes depend on you, mine were:





server-name=Vendetta Minecraft Server



motd=Welcome to HELL\!


You can add usernames of the admins who will have ‘op’ (operator) in “admin.txt”.
An admin with op rights can use these commands:

/op <name>. Makes the player with name <name> an OP. They have to be logged in.

/deop <name> . De-ops a player.

/kick <name>. Kicks a player

/ban <name>. Bans and kicks a player

/unban <name>. Pardons a banned player

/banip <name> . Bans a player by IP. Cannot be undone in game, you must manually change “banned-ip.txt”.

/say <message>. Broadcasts <message> across the entire server.

/setspawn. Sets the current location as the default spawn location for new players

/tp <name>. Teleports to a player.
/tp<target><user-location>. teleports to <user location>

/solid . Switches between placing normal and placing unbreakable stone

/pardon <name>. Removes the ban on the player with the typed name, allowing them to reenter the server.

Minecraft Port Forwarding
If you are behind a router, you must forward this port TCP/UDP 25565.
For more info on port forwarding visit portforward dot come.

Step 5| How to Connect to a Minecraft Server
To join your own server select “multiplayer” option in game client and type local IP address (like and give port number 25565.

For other people connecting via internet, they must open this URL in their browsers

http://www.minecraft.net/play.jsp?server=<YOUR IP>&port=<SERVER PORT>

Note. YOUR IP here means your external IP address; you can check it from whatismyip, and server port is 25565 (default).

Minecraft Server Problems – FAQS and Troubleshooting Guide

1# Start Server batfile doesn’t work
‘java’ is not recognized as an internal or external command.
This is usually caused by a bad java installation, and has two fixes.
A. Reinstall java.
B. Do this method.

  • Right click My Computer, select Properties
  • Click Advanced tab
  • Click Environment Variables
  • Under System Variables, select Path, then Edit.
  • Add at the end of the lower textbox your path to the java etc “;C:\Program Files\Java\jre6\bin” semicolon must be there.

Now you have successfully made your first Minecraft server, invite friends and enjoy your time.If you face any issue, comment and we will try to help you out.

Contributor at SegmentNext.
  • ShadowdoesMinecraft

    Im trying to start the server but it says the port does not bind. Help please?

    • Luke

      Go to your Task Manager, go to “Processes”, and you should see one or more ones named “javaw.exe”. End all processes named that and it should work.

  • big brother commands minecraft

    Download As well as Perform Minecraft My own These days And you’ll Turn into a Enthusiast right away

    If you’re a pc as well as game lover then minecraft my own is something make an attempt the hands out.
    Originally written in Espresso by originator Markus “Notch” Persson, minecraft has become readily designed for Personal computer along with Android.
    This kind of may be the availability of the game you will be absolutely addicted in no time.
    Hours will certainly pass and you will not understand that you have been playing this kind of sandbox game.
    Minecraft downloads available are actually available for just about almost most – Windows, Macintosh
    as well as Linux.

  • minecraft servers minecraft forums

    Fantastic info on this amazing site!
    If you value actively enjoying internet games you should take a look at my personal url to the newest Minecraft information!

  • http://www.isustainableearth.com Sustainable Earth

    Just not working well for me, has anyone got it working well?

    • http://segmentnext.com Ali Asif

      What is the issue you are facing?

  • ???????

    i clicked on th start sersver.bat and the thing came up where it saus”click any key to cotinue” and nothing happened :( hwpl plz

  • noah

    wasss up

  • your mom

    lol i did the whole tutorial but at the end of it i saw it was a minecraft classic tutorial >_>

  • Fish

    I made a private server, and i can get on to it but my friend cant. i don’t know what’s wrong!

  • have a problem

    i have a problem when i join my server i doesnt work and on my server
    its says that i need to log in how i log in???

  • Anthony

    Now I can’t even go onto minecraft. I can’t even get to the Main screen. It keeps saying Failed to Launch. Fatal error

  • Jeff


    When i right click -> run as admin
    Then the window comes up and i press enter but it just shut down agian please help!

  • max

    when i run my server it keeps saying failed to save properties files and then it makes another properties file and never stops

  • Axellerate

    same as sach!! :( its REALLY frustrating.. i am running vista 32b though, but get excactly that error message, and the “you need to log in” ..
    i AM logged in on minecraft.net, and from my minecraft launcher.. HAAALP!

  • daw

    not a very good tutorial, unhelpfyl

  • micklas422

    Dosent work for me..It says “java” was not regonized as a internal or a external command,A proram or a batch file.”

  • Zach

    Every time I try to loin into my server it gives me this error:

    Connection lost
    Internal exception: java.IOException: Bad packet id 14

    I have uninstalled and reinstalled java a couple times and this last I know it installed correctly. I have deleted all old version of java and I have a paid version of the game. I am running windows 7 64 bit, and just so you know I also have “Java™ SE Development Kit 6 update 24 (64-bit)” installed for my web design.

    • Zach

      I also get this in my command prompt for my server:

      15:31:50 Setting up
      15:31:50 Loading level
      15:31:51 Now accepting input on 25565
      15:31:51 Level saved! Load: 0/10
      15:31:54 / connected
      15:31:59 Kicking / You need to log in!
      15:31:59 / disconnected

      and yes I am logged in.

      Thanks for any help you can give!

      • Sechsi

        the same here, any solutions?

        • Xenogen

          Same here too! Need a solution for this! Sort your server software out Markus Alexej Persson and quit jerking off just because you’re a multimillionaire!

  • joe

    I don’t know if anyone can help me,My friend and I bought the game and are playing the beta version. We were on the same router at college and it worked great playing online, but now we aren’t even in the same state and want to play over the internet. He is going to set it up the server from a home computer and he gave me the IP for it but when I try to connect I time out and the connection fails, I put the :25565 at the end and it still doesn’t do anything. He has a direct lan connection, and I am just lost. what do I need to put into the multiplayer page in order for it to work if he has the serer running? the IP then :25565?? or what

  • mo

    Come si fa a dare da un server la lana nera ai giocatori e dimmi per favore cosa devo digitare sulla barra del server grazie?

  • ScreamingNutz

    When i run the program, it says “java is not recognized as an internal or external command. operable file or batch file” Can someone help?

  • nastro

    everytime i try to launch server it says this:

    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Press any key to continue . . .

    can any1 help me plz??

  • Temir Talaibek

    I get most of it. But I need assistance. Can you go on teamviewer?
    You can steal my screen and adjust some settings that I don’t seem to get. Please, i really want my own server.

    • http://segmentnext.com Zawad Iftikhar

      Sorry bro, I wish I could. I really put myself up to assist people via comments.

  • BizMark

    my computer doesnt recognize Java as an internal or external command, do you know how to solve this?

  • Dillon

    my windows does not reconize the start server.bat program and it wont open what do i do?

    • http://segmentnext.com Zawad Iftikhar

      I have answered it under the FAQS or troubleshooting part of the article.

      • BizMark

        i did that and is just “Path” or “CLASSPATH”?

  • skazzart

    great tutorial helped out heaps
    when i start the server is says
    failed to bind to port
    the excepyion was: java.net.bindexeption: cannot assign requested address: JUM_Bind
    perhaps a server is already running on that port?

    please help!

  • sumguy

    I actually came to this tutorial because of the play via url section, I tried what you said by navigating to: — http://www.minecraft.net/play.jsp?server=&port= — and minecraft.net says “You can’t connect to the server via this URL anymore!”, do you have an update for this? Also what would the param be to pass in a username?

    • sumguy

      This post edited the url, it should say : server=MY_IP&port=MY_SERVER_PORT

  • Megan Nonyurbizznazz

    I have a minecraft server, if you want you can come play. only 5 are aloud on so… my hamachi is Rae&Megan and the pw is wtfwaffle

  • Creeper

    when i go on and play and try to destroy say a tree it doesnt give me anything and it pops right back up do i need mobs on?

    • Fear

      just go in your admin.txt and put your user name in there 😉
      or the white list.txt

  • kid

    every time i use a command from my server, it says “Can’t find user ”
    what do i do? its becoming very inconvinient

  • Skaell

    Why the server kick me when i connect on the server ?
    It do this to my friends who wants to join too …

  • Fausto 4 Her

    Hellow when i try to log on it says that

    “connection refused”…



    • http://segmentnext.com Zawad Iftikhar

      May be some anti-virus or firewall is blocking the game ?

  • Liam

    scratch that, but you should make an faq. because i have no idea why it wont let me connect

    • http://segmentnext.com Zawad Iftikhar

      Farhan will come and reply to your queries.

    • http://segmentnext.com Farhan

      If you are connecting to server from same system (or LAN); Use internal IP address. And if from behind a router; use External IP (whatismyip.com).
      Still if you are unable to solve this issue. Try PFPortChecker software to test if your ports are forwarded or Not.

  • Liam

    how the hell are we supposed to know what our ip’s are?

    • http://segmentnext.com Zawad Iftikhar

      You can check your IP at ‘whatismyip.com’.

      • Rolande

        That link is broken it no longer works

    • IPostedThis

      Download the program LogMeIn Hamachi, and it is in a similar format to windows live messenger, and it tells you your ip address right next to your name.

  • Dice

    Hey, helpful guide, but I am having trouble running my own server and trying to connect to it on the same computer. I have the latest Java and minecraft v1.2.2 installed but whenever i select multiplayer and then enter localhost, it says error outdated version or something along those lines. I think that my server program is currently v1.3. does that have to match my installed minecraft version or is there a way to update either of these to make them compatible? Thanks.

  • Janaaaar

    Start server.bat doesnt work. it just says ‘java’ is not recognized as an internal or external command, operable program or batch file.
    Press any key to continue…

    then it just closes. need help!!!

    • http://www.SegmentNext.com Farhan

      Try re installing JAVA or provide your system information.

    • http://segmentnext.com Farhan

      Java not installed properly!

      • joosep

        i had the same problem but i fixed it by installing 64 bit java.you need to see is your op-system 34-or 64 bit

  • joosep

    the setup for port forwarding didnt work. i downloaded the free version from the website.

    • http://segmentnext.com Farhan


  • joosep

    sorry to bother again but i had a new error when i tried to connect the server.it says “failed to connect to the server connection timed out:connect

    • http://segmentnext.com Zawad Iftikhar

      Make sure your firewall and anti-virus aren’t blocking the server connection. Be sure to check the status of the game – as it may be on maintenance at that time. To be on the safe side – port forward the required ports before you play the game.

      • joosep

        i dont know how to port forward.saw that port forwarding website but the setup didnt work on my computer.

        • http://segmentnext.com Zawad Iftikhar

          Well – you can search router you are using on portforward.com and follow the specified instructions on that website.

          Meanwhile do contact ‘support@minecraft.net’ for this issue – the good guys there may be able to solve your issue.

  • joosep

    hello,i have a problem with “start server.bat”.it said “java” is not recognized as an internal or external command,operable program or batch file.what should i do?

    • joosep

      i have it but it still doesnt seem to run.and i seem to have a problem to connect the server.

      • http://segmentnext.com Zawad Iftikhar

        If you are experiencing issues running the game like connecting to the server – you can refer to our Minecraft Troubleshooting Guide.

        On your Error – that can also occur due to version mis-match. Java version you have installed with the Minecraft version. Try to minimize the possibilities.

        • joosep

          thanks,i got it working seems that i had problem with the java version.i had 32 bit one but my op-system was 64bit.thanks again

  • flamingchez

    yeah so i got to where you open the batch file but when i open it it says “C:\Users\******>java -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer
    Exception in thread “main” java.lang.NoClassDefFoundError: com/mojang/minecraft/server/MinecraftServer
    Caused by: java.lang.ClassNotFoundException: com.mojang.minecraft.server.minecraftServer
    at java.net.URLClassLoader$1.run
    at java.security.AccessController.doPrivileged
    at java.net.URLSlassLoader.findClass
    at sun.misc.Launcher$AppClassLoader.loadClass
    at java.lang.ClassLoader.loadClass
    Could not find the main class: com.mojang.minecraft.server.MinecraftServer. Program will exit.”

    I am running Windows Vista

    • http://www.SegmentNext.com Farhan

      Java not installed Properly.

    • IPostedThis

      you probably didn’t extract the server files from the .zip folder. thats what happened to me

  • seryoferben

    My server is always kicking everyone who wants to play in it. It displays this:

    17:18:35 / connected
    17:18:40 Kicking / You need to log in!
    17:18:40 / disconnected

    Is there a solution for this?

    • Fear

      that happened to me too , someone please reply on how to fix this :)

  • Herpderp

    To join your own server select “multiplayer” option in game client and type local IP address (like and give port number 25565.

    How do I ‘give port number’? What the hell does that mean? Do I somehow add 25565 onto the IP, wt

  • Spartan

    Also it says Refusal:connect

  • Spartan

    What if you got the cracked version, not paid?

    • hippl642

      turn off verify names verify-names=false

      • pea00007

        i have the same problem, that fix does not work

  • Mr Alfalfa

    how long does it take to create the server via command prompt.
    mine goes level saved! load: 0/16

    also step 3. what files need editing, is it just server.properties in step 4, or other files, because this is the first time ive done this and i dont know what files would need to be edited..?

    thanks in advance guys
    mr alfalfa

    • lochie

      same here i cant work out why :(

  • Dirk

    Same issue as James, Oblivion, and frostilicus. What’s the deal?

    • Kieran

      Are you using free or bought software?

  • http://www.youtube.com/D0NN311AN james

    Same issue as oblivion i have followed alot of guides and i am still not able to join my own server as it kicks me saying“you need to log in!”

    pls help

    • Kal

      You probably need to log in on the minecraft website.

      • Mike

        That doesn’t really help either. I have the same problem, haven’t been able to solve it yet.

  • Gigi

    @Genraltweet: Java Version 6 Update 23 means Java 1.6.23

  • Oblivion

    So if followed this and a bunch of other guides. Got everything work so it seems, but i can’t join the server. Using the URL we can get into a free version. But neither me or my friends can get into the actual version of the game. When i watch the “cmd” as i log in it says my ip logged in, but then it kicks me saying i “need to log in”

    Any help?

  • Dzfk

    This does not work. I use cmd and type in java -version and it says not a recognized batch file. And when I try to extract minecraft server.jar it says operation not possible. I am using 7zip. So many tutorials and this still does not work. Is there an easier way to make a server that doesnt require rocket scientist skills?

  • Genraltweet

    Where can I find a download of Java 1.6?? I can’t find it ANYWHERE!! I clicked the link above, but that only downloads the latest version of java. Not 1.6. Please help me!

  • aguy

    how do you turn on zombies

  • Der_Doktor

    Frosticullus I too am having the same problem no matter what I do, it always crashes after it boots me too.

  • TheBlueReptile

    “To join your own server select “multiplayer” option in game client and type local IP address (like and give port number 25565.”

    Followed everything up to this point. I’m guessing this means you need the full version to host a server. I’ve downloaded the software cahnged all nessesary setting but can’t figure out what this means from the webpage

    • randomdude

      instead of putting in your ip address, put in “Local Host”
      it will connect you to the server that you are running

      • MaX_Vici

        What IS the “Game Client”
        all I have is the Minecraft-Server.
        Is there something else I need?

  • frostilicus

    Every time I try to connect to my server, locally or not, it kicks me.
    Server error:
    18:28:02 / connected
    18:28:07 Kicking / You need to log in!
    18:28:07 / disconnected

    Happens whether or not I log in. Any info for me?

  • Marc-Olivier

    go shit gay ass how to play it is a junk ta******k

  • Pingback: Minecraft Private/Dedicated Server Guide (Mac OS X)()

  • Elevennn

    Buddy, go pay for it. Support the game, its only a one-off payment, and it means the game will be further developed.

    • http://segmentnext.com Zawad Iftikhar

      I second that, really a very good game :)

      • dukenukem

        i third that this game is worth buying 5 times over!!! and it is made by one guy… so give him/her the goods so there will be better minecraft! (if it can get better)

        • Corwin253

          Gave to fourth it. Got it today and i’m loving it. Just tough to find a good server.

          • China

            i fith that. Ive had it for ages, and have alot of great servers. Notch is doing well, but it isnt completely on his own anymore. witch is still fine with me. Minecraft forever!

    • Narnya

      i would love to buy it but i can’t…its not that i can’t afford it…its that ther is no method i could buy it..and i know no one who could buy it for me…so its just one way left..

  • mariln

    yeah thank that was cool but…. i have a cracked minecraft alpha and it doesn’t want to launch to my server and when i try at the minecraft website it just launches me to a “poor guy” game.

  • disguy

    that is alpha, which is not free/online/wuteva yet

  • Max Demajo

    Great tutorial! But how do I make the server with zombies and items you can create and stuff instead of having unlimited resources and no inventory?

    • Matt

      In your server.properties type

      • jp

        i tried that but it really doesnt work at all for me