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?

Yeah thanks :-) 9 vote(s) 64.3%
I didn't understand it very well... Please help me! 5 vote(s) 35.7%
  1. Offline

    Willpool

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    * 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 bukkit.org 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.

    [IMG]

    || 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
    PAUSE

    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
    PAUSE

    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".

    [IMG]

    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.


    [IMG]
    || 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.

    [IMG]

    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.

    [IMG]

    Everybody has different routers, so if you have a different router to NetGear, please go to portforward.com > 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

    [IMG]
    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

    [IMG]
    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 server.properties (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.

    [IMG]

    || 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.

    [IMG]

    Click Allow a program or feature through Windows Firewall.

    [IMG]

    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.

    [IMG]

    || 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 ipchicken.com

    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 ipchicken.com 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 bukkit.org, 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!

    [IMG]
    Now just run your server and it should work fine.

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

    ^ Willpool

    This post has been edited 2 times. It was last edited by Willpool Jul 12, 2012.
  2. Online

    W&L-Craft

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    you might could add how to install plugins
  3. Offline

    Willpool

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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! :)
  4. Offline

    Willpool

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    - Added first "Advanced" step - how to install plugins!
  5. Offline

    DinoRawrr1232

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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!
  6. Offline

    themagneticone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You are a great man. Thank you. The Java thing is what I was having an issue with.
  7. Offline

    XlegitXcrazymanX

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Good tut, If only this came out 1 year and 3 months ago, I would have had my MC server up likeabaws
  8. Offline

    Saber_Darkheart

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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 server.properties 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

    This post has been edited 1 time. It was last edited by TnT Nov 29, 2012.
  9. Offline

    tobias1012

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    hi saber_darkheart if you have java 7 try this code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1354M -Xms1354M -jar craftbukkit.jar
    PAUSE

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

    This post has been edited 1 time. It was last edited by h31ix Dec 15, 2012.
  10. Offline

    EliteGamr47689

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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?
  11. Offline

    Charlesdark221

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I don't get the port fowarding part I dont know where content filtering at
  12. Offline

    Charlesdark221

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I have windows 7 and I dont have netgear and I need help portforwarding
  13. Offline

    SnakeEyes14698

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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..."

    This post has been edited 1 time. It was last edited by TnT Mar 17, 2013.
  14. Offline

    crafter407

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    On the windows firewall step i cant find my java(tm) thing ????
  15. Offline

    Super User

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Not sure how I'm suppose to help OP here, all of you with errors should make another thread so someone can help you.
  16. Offline

    Maihym

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @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.
  17. Offline

    darkwillz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    so anyone know how to make the server always open?

    This post has been edited 1 time. It was last edited by mbaxter Apr 15, 2013.
  18. Offline

    OZKONOV

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  19. Offline

    Cookiez500

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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
    PAUSE


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

    Just So You Know this is 64x

    This post has been edited 2 times. It was last edited by TnT Jun 13, 2013.
  20. Offline

    PitifulJupiter

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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
  21. Offline

    Nephilim

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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" ??

    This post has been edited 1 time. It was last edited by Nephilim Sep 29, 2013.

Share This Page