Setting up a Minecraft server - How to make a public Minecraft server with port-forwarding!

Discussion in 'Bukkit Help' started by Willpool, Jul 11, 2012.


Was this helpful?

  1. Yeah thanks :-)

  2. I didn't understand it very well... Please help me!

Thread Status:
Not open for further replies.
  1. Offline


    * Note, if you have a Mac or Linux please go to the Bukkit Wiki here. *

    Alright, so most of my friends have been asking me how I made my Minecraft server ("the absurd kingdom"), so I thought I'd make this thread dedicated to them. (because they don't understand any other of the tutorials :p)

    || The Basics: Making the server ||

    Obviously, before we go into all the advanced stuff, we have to actually make the server first. Now, I recommend port-forwarding. Not many people like or even have Hamachi - but it is the easiest option.

    First, we'll need either Bukkit or MinecraftServer. You're obviously going to want Bukkit, so go to and download the latest recommended build.

    || The Basics 2: Making the server's directory ||

    Once you've downloaded Bukkit's latest Recommended build, you'll need your server's directory / file. Make a file on your desktop and name it whatever you want. Then, put the craftbukkit(whatever).jar in this file.

    Right click on the craftbukkit(whatever).jar and change it to just craftbukkit.jar.


    || The basics 3: Making the start-up batch ||

    In order for you to actually start your server, you'll need a start-up file. ** BEFORE I MENTION THIS, MAKE SURE YOU HAVE JAVA. YOU WILL NOT BE ABLE TO MAKE A MINECRAFT SERVER WITHOUT JAVA. DOWNLOAD EITHER JAVA 6 OR 7 - I RECOMMEND 6. **

    Open Notepad and type the following if you have Windows (32bit) and you downloaded Java 6:

    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar

    Windows 32bit with Java 7 is the same as above ^ but instead of jre6 it'll be jre7.

    If you have Windows 64bit and you have Java 6, change %ProgramFiles% to %ProgramFiles(x86)% like this:

    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar

    Windows 64bit with Java 7 is the same as above ^ but instead of jre6 it'll be jre7.

    *if you have a mac or linux, please read the top of this post.*

    Once you've copied the code that matches your operating system, save the file as "RUN.bat" and the Save as file type as "All files".


    Now, in your server file, double click on the RUN.bat. This will generate the essential files for your server.

    Everything here will be the same, but all "32beta"'s will be called "world", and there won't be anything called Smap. Ignore that. Oh, and there might not be a "wepif". I have no idea what that is, to be honest.

    || Intermediate 1: Port-forwarding ||

    Woo hoo! We've reached Intermediate. Here be the dreaded Port-Forwarding, the step that pretty much EVERYBODY gets stuck on. (the ones that failed to make a server).

    Click Start > type cmd > press enter.


    Type "ipconfig" in command prompt.

    Scroll down until you first see the word "wireless". Now, ignore everything else and look at the number after Default Gateway: - and then paste that number into your browser.


    Everybody has different routers, so if you have a different router to NetGear, please go to > routers > port forwarding guides > your router > model > Minecraft Server. (the router & model can be found under your actual router.)

    If you have a NetGear like me, you'll have to do exactly what I do.

    That being said, some different models of NetGear have different options. So, on some of them you have to click "Port Forwarding / Port Triggering". If you don't have this, this is how you do it.

    Click "Services" under "Content Filtering".
    Click Add Custom Service.

    If this is your FIRST EVER minecraft server, which it probably is if you're looking at this post, you'll need to portforward 25565, so in Start Port and Finish Port you'll put 25565.

    But this isn't my first Minecraft server, I'm going to forward a different port. 25590.

    Name > anything you want. NO SPACES. like this: mserver
    Type > Either TCP/UDP or TCP.
    Start Port > 25565 (if this is your first server)
    Finish Port > 25565 ^ read above

    Click Apply.

    Now click Firewall Rules which is above Services.

    Scroll down to Inbound Services.
    Click Add.

    Service: Select the service you just created.
    Action: ALLOW always
    Send to LAN server: Your ipv4 address found in CMD > ipconfig (under Wireless LAN Adapter Wireless Network Connection)
    WAN users: Any
    Log: Never

    Now, under "Advanced", go to LAN IP setup.

    Press add.
    Tick your computer under Address Reservation Server.
    Press add.

    You will only need to do this once.

    You have successfully port-forwarded.

    || Intermediate 2: Enabling the port for your server ||

    Ok, now that your port is opened, you will need to enable it for your server. This is very easy, it shouldn't be in Intermediate but you need to port-forward first so it'll have to be after that step.

    Go to your server's file.
    Open (I recommend right clicking and opening with Notepad++, if you don't have that and don't want to download it for some weird reason, right click and open with notepad.)

    In server-port, type in the port that you've opened. As I've said a million times, if it's your first server, you shouldn't opened 25565 so you can skip this step since the default in server-port is 25565.


    || Intermediate 3: Making Java public ||

    Lot's of people think it's over after port-forwarding, and the ones who think that can't get people to connect to their server. This is because they're wrong. You're going to need to make your Java public!

    Type in Windows Firewall.

    Click the Windows Firewall icon.


    Click Allow a program or feature through Windows Firewall.


    I'm assuming you have Java SE installed.

    Click Change Settings and find the JAVA(TM) Platform SE binary's.

    Enable them and tick Public.


    || We Win! 1: Getting the IP ||

    WOO HOO! You've successfully created a port-forwarded Minecraft server. Now, you just need the IP to connect with. *since you are the host of the server, you can connect with the IP localhost.*

    Go to

    Copy the number and give this to your friends!

    || We Win! 2: THE STARTUP ||

    The final step! Just click your RUN.bat, connect with either the number at or localhost!

    || Advanced 1: Installing Plugins ||

    Now that you've got your server up and running, you'll want to install some cool plugins, sometimes known as 'mods', short for modifications.

    NOW the most ESSENTIAL (haha geddit?) plugin is Essentials! You get all the cool stuff like /invsee /sethome and stuff. There are about a billion commands that come with essentials so I can't say them all!!

    Click here to get Essentials

    There's a whooooooooole lot of plugins, so go to, Get Plugins, and find one that's right for you!

    So, once you've downloaded a plugin, you'll need to install it into your server. How?...
    Remember when we talked about the server directory? You'll need to go into there. Once you're in your server directory, open the plugins folder. It'll be empty.

    Go to wherever you saved the plugin's .jar, and drag it into the plugins folder!

    Now just run your server and it should work fine.

    * More things are being added to this thread. Please check back later! *

    ^ Willpool
  2. Offline


    you might could add how to install plugins
  3. Offline


    Yeah, I didn't have much time I only had time to make the basics of making the server but I'm definitely going to add all that stuff! :)

    - Added first "Advanced" step - how to install plugins!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 26, 2016
  4. Offline


    yeah well i tried the RUN.bat code and i think i did everything else right (before RUN.bat) but when i run the RUN.bat it says path not specified and i tried ALL the codes. I DONT KNOW WHAT THE HECK IS WRONG WITH MY THING....! please help!
  5. Offline


    You are a great man. Thank you. The Java thing is what I was having an issue with.
  6. Good tut, If only this came out 1 year and 3 months ago, I would have had my MC server up likeabaws
  7. Offline


    I need some help, when I click the RUN.bat file, it says unable to access jarfile craftbukkit.jar, here's the code that I used; @Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE, but it's still saying that it can't access the jarfile. another thing, in the I keep setting it to creative mode so I can build a cool spawn and I'm always in survival, it's also making me a player when I'm the owner
  8. Offline


    hi saber_darkheart if you have java 7 try this code:
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1354M -Xms1354M -jar craftbukkit.jar

    or rename you craftbukkit(blablabla).jar to craftbukkit.jar
  9. Offline


    Hey, I followed all the steps correctly, But I get stuck on "Inbound Services". I can't find it anywhere, Im using Virgin Media Superhub and I've created the port fowarding rule then get stuck on Inbound Services. Could anyone please tell me where to find it?
  10. Offline


    I don't get the port fowarding part I dont know where content filtering at

    I have windows 7 and I dont have netgear and I need help portforwarding

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 26, 2016
  11. Offline


    So I do all the steps, and for some reason every time I try running the run.bat file, All I get is:
    "The system cannot find the path specified
    Press any key to continue..."
  12. Offline


    On the windows firewall step i cant find my java(tm) thing ????
  13. Offline

    Super User

    Not sure how I'm suppose to help OP here, all of you with errors should make another thread so someone can help you.
  14. Offline


    Saber_Darkheart DinoRawrr1232 If you guys are using this code

    Then try this code

    The code above still specifies java and is a 64 bit code if you have 64 bit java this would definetly work if not just pm and i'll try to help.
  15. Offline


    so anyone know how to make the server always open?
  16. Offline


  17. Offline


    Okay.... So... I Could halp...
    if the command prompt says "java" is not a usable...What I did is that i opened my java files....
    To get there you should:
    1. Open My Computer
    2. Double Click On OS
    3. Double Click On Program Files (86x)
    4. Find "Java" And Double Click It
    5. Open jre7 (Thats The Folder Of The Latest Java)
    6. Open "bin"
    7. Find "java" I should have a icon of a coffee cup
    8. Copy that thing into the folder of your server
    and hit run!
    If This didnt work try a different run.bat code....

    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    java -Xmx1024M -Xms1024M -jar craftbukkit.jar

    DONT FORGET TO RENAME THE NEWLY DOWNLOADED CRAFTBUKKIT-1.5.2-R2.0 thingy just plain craftbukkit

    Just So You Know this is 64x
  18. Offline


    I have netgear and I found the website that was led to me by putting in my default gateway in the browser so when i get there there is no services under content filtering and then add services there is only port fowarding that i see and i click on that and fill the info out and for the ip i put my default gateway but it says its invalid please help
  19. Offline


    So i got a apple router, followed how to portforward on the site. But server wont work. I got norton 360, Applied the java stuff, but could it still be blocking the server? it says "cant reach server" and "connection refused: connect" ??
  20. Offline


    You'll need to either leave the run.bat open all the time, or buy a game server from a host. I would recommend MPServ- their packages start at $3.
Thread Status:
Not open for further replies.

Share This Page