Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,138
    Reputation
    526
    Thanks
    2,909

    Hosting A Server On Your Computer

    I keep looking around and seeing tons of crappy Hamachi servers, so I figured I'd write up a tutorial for people on hosting a server without Hamachi. All of this was written by hand, by me. It took a while, but I hope it is helpful for people.

    Prerequisites:
    ▫ Java Runtime Environment installed.
    ▫ A relatively powerful computer.
    ▫ A decent network connection.

    Section 1: Downloading and Setting Up Your Server
    Vanilla Server:
    ▫ Create a new folder somewhere on your computer called Server.
    ▫ Download the Minecraft server JAR and save it to the Server directory.
    [Windows] Create a new text file inside the Server directory and call it start.bat
    [Windows] Right click the file, click edit, and then paste the following into the file:
    java ▫Xmx1024M ▫Xms1024M ▫jar minecraft_server.jar nogui
    [Windows] Save the file the close Notepad.
    [Mac] Open TextEdit, create a blank document, then paste the following in:
    cd /Path/To/Server/
    java ▫Xmx1024M ▫Xms1024M ▫jar minecraft_server.jar nogui

    [Mac] Press Shift+Command+T to convert the document to plain text, and the save it as star*****mmand
    ▫ Double click the start.bat or star*****mmand file inside the Server directory to launch the server.
    ▫ The server will start creating files inside the Server directory, and will also generate a world.
    ▫ Once it finishes everything that it is doing, type stop into the Command Prompt or Terminal.
    ▫ Double click your start file again.
    ▫ Open Minecraft, select Multiplayer, and set the server IP as localhost to test your server.
    ▫ When you are done, open the Command Prompt or Terminal window that came up and type stop.

    Bukkit Server:
    ▫ Create a new folder somewhere on your computer called Server.
    ▫ Download a Bukkit build and save the JAR to the Server directory. Selecting a proper Bukkit build and configuring all the plugins that you want can be a difficult process. Usually you should look at all the plugins that you have downloaded, and see what versions they support. Then look for a preferred build of Bukkit that is very close to, but not less than, those version numbers.
    ▫ Rename the downloaded JAR to craftbukkit.jar
    [Windows] Create a new text file inside the Server directory and call it start.bat
    [Windows] Right click the file, click edit, and then paste the following into the file:
    java ▫Xmx1024M ▫Xms1024M ▫jar craftbukkit.jar noggui
    [Windows] Save the file the close Notepad.
    [Mac] Open TextEdit, create a blank document, then paste the following in:
    cd /Path/To/Server/
    java ▫Xmx1024M ▫Xms1024M ▫jar craftbukkit.jar nogui

    [Mac] Press Shift+Command+T to convert the document to plain text, and the save it as star*****mmand
    ▫ Double click the start.bat or star*****mmand file inside the Server directory to launch the server.
    ▫ The server will start creating files inside the Server directory, load all your plugins, create the plugin config files, and will generate a world.
    ▫ Once it finishes everything that it is doing, type stop into the Command Prompt or Terminal.
    ▫ Now is the time to configure all your plugins. Setting plugins up is up to you, as every plugin is different and there is no way I can cover every one. Most developers have an extensive wiki or an explanation on their release thread.
    ▫ Open Minecraft, select Multiplayer, and set the server IP as localhost to test your server.
    ▫ When you are done, open the Command Prompt or Terminal window that came up and type stop.


    Section 2: Port Forwarding
    ▫ Find out the brand and model number of your router.
    [Windows] Open Command Prompt and type in ipconfig /all
    [Windows] Look at the IPV4 address on the list, write down the numbers on that address.
    [Mac] Open Terminal and type ifconfig, then look at inet under en1
    [Mac] Copy down the four sets of numbers directly in front of inet
    ▫ Head over to Port Forward, scroll down, and select your router from the list at the bottom of the page.
    ▫ Skip the advertisement, and then click the Default Guide link.
    ▫ Follow the instructions there, setting the port to forward as 25565, and the local IP as the numbers that were copied in the above steps.
    ▫ Save your work and exit your router.


    Section 3: Letting Other Users Connect To Your Server
    ▫ Head over to WhatsMyIP and find out your external IP address.
    ▫ If all went well, people should be able to connect to this IP. Start your server and give this address to people to test it out.
    Last edited by Corndog; 04-03-2011 at 12:03 AM.

  2. The Following 12 Users Say Thank You to Corndog For This Useful Post:

    Coldfrye (03-25-2014),fronzensoul (09-17-2012),Insane (06-04-2011),Jabuuty671 (04-02-2011),porygonzx (08-17-2011),Stevenom (07-03-2011),T1ND (04-03-2011),UpperTame (05-18-2013),VividlessGaming (04-10-2013),westwolfking (06-04-2011),crex (10-13-2011),Xblaster12 (06-10-2011)

  3. #2
    Jabuuty671's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    21,229
    Reputation
    1468
    Thanks
    4,098
    Prerequisites:
    ▫ A powerful computer.
    ▫ A decent network connection.

    any examples/further info of said prerequisites?


  4. #3
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,138
    Reputation
    526
    Thanks
    2,909
    Quote Originally Posted by Jabuuty671 View Post
    Prerequisites:
    ▫ A powerful computer.
    ▫ A decent network connection.

    any examples/further info of said prerequisites?
    Network Upload/Download > 5 MB/s
    RAM > 3GB
    Processor > Core 2 Duo 2 GHz


    Just estimates off the top of my head. I can support about 6 players on my system with 4 GB of RAM, and a 2.53 GHz Core 2 Duo.
    Last edited by Corndog; 04-03-2011 at 12:04 AM.

  5. The Following User Says Thank You to Corndog For This Useful Post:

    Jabuuty671 (04-03-2011)

  6. #4
    sythe179's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    The internet
    Posts
    660
    Reputation
    15
    Thanks
    1,458
    My Mood
    Paranoid
    Min dedicated server reqs: 2gb ram
    core: duel core at least. (laptops, at least one from 1.5 years ago.)
    net : if you can upload at 60Kb/s, thats 10 people.

  7. #5
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,138
    Reputation
    526
    Thanks
    2,909
    Quote Originally Posted by *****179 View Post
    Min dedicated server reqs: 2gb ram
    core: duel core at least. (laptops, at least one from 1.5 years ago.)
    net : if you can upload at 60Kb/s, thats 10 people.

    You heard it form this man himself. Dial up connection is required, and your processor core must be in the middle of a duel.

  8. #6
    gr33nd3v1l's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    101
    Reputation
    21
    Thanks
    9
    My Mood
    Sleepy
    i must admit this doesnt work for me..

    the java ▫Xmx1024M ▫Xms1024M ▫jar minecraft_server.jar nogui

    little square parts are apparently the problem
    the start.bat does nothing

    also i noticed the bukkit one says nogGui with 2 g's
    and when i run craftbukkit javaw appears in my processes, whereas with start.bat it doesn't
    Last edited by gr33nd3v1l; 04-07-2011 at 04:31 PM.
    Non-hacking.
    ____

  9. #7
    Hello World's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    139
    Reputation
    10
    Thanks
    19
    My Mood
    Amused
    Good tutorial to help noobs out. You should put this in. https://canihostaminecraftserver.com/
    It helps with how many ppl you can host lagless.

    Also you should include how to get a static IP.
    Last edited by Hello World; 04-07-2011 at 04:42 PM.

  10. #8
    Velocity's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Usa
    Posts
    4,375
    Reputation
    106
    Thanks
    773
    Quote Originally Posted by Hello World View Post
    Good tutorial to help noobs out. You should put this in. Can I host a Minecraft Server?
    It helps with how many ppl you can host lagless.

    Also you should include how to get a static IP.
    im not a noob but thanks for the link :P
    i got 8 and thats more than enough.


    Quote Originally Posted by gr33nd3v1l View Post
    i must admit this doesnt work for me..

    the java ▫Xmx1024M ▫Xms1024M ▫jar minecraft_server.jar nogui

    little square parts are apparently the problem
    the start.bat does nothing

    also i noticed the bukkit one says nogGui with 2 g's
    and when i run craftbukkit javaw appears in my processes, whereas with start.bat it doesn't
    nogui means its invisible. ur supposed to not be able to see anything.
    Last edited by Velocity; 06-02-2011 at 06:47 AM.

  11. #9
    Nerd_01's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Minecraft.
    Posts
    427
    Reputation
    15
    Thanks
    26
    My Mood
    Stressed
    But if you don't own a dedicated IP address, the IP of the server changes, because your IP changes every 24/48 hours :O
    There's no place like 127.0.0.1.








  12. #10
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,057
    Reputation
    1007
    Thanks
    2,013
    Quote Originally Posted by Nerd_01 View Post
    But if you don't own a dedicated IP address, the IP of the server changes, because your IP changes every 24/48 hours :O
    @Nerd_01



    That's why we have trusty ol' static IPs.

    Ex Middleman

  13. #11
    FWESFWSERGFwesg's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    202
    Reputation
    9
    Thanks
    18
    My Mood
    Inspired
    Nice TUT.

  14. #12
    Nerd_01's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Minecraft.
    Posts
    427
    Reputation
    15
    Thanks
    26
    My Mood
    Stressed

    OOOOOOOOOOOOOOOOOOOOOOOOOooohhhh didn't know those were
    There's no place like 127.0.0.1.








  15. #13
    Arikarin's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    can cracked minecraft work?

  16. #14
    Nerd_01's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Minecraft.
    Posts
    427
    Reputation
    15
    Thanks
    26
    My Mood
    Stressed
    java ▫Xmx1024M ▫Xms1024M ▫jar craftbukkit.jar noggui

    I thought it was 'nogui' not 'noggui'
    There's no place like 127.0.0.1.








  17. #15
    DareoTheOreo's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Under your bed
    Posts
    2,791
    Reputation
    92
    Thanks
    182
    My Mood
    Confused
    Quote Originally Posted by gr33nd3v1l View Post
    i must admit this doesnt work for me..

    the java ▫Xmx1024M ▫Xms1024M ▫jar minecraft_server.jar nogui

    little square parts are apparently the problem
    the start.bat does nothing

    also i noticed the bukkit one says nogGui with 2 g's
    and when i run craftbukkit javaw appears in my processes, whereas with start.bat it doesn't
    cuz you gotta put stuff in the .bat, and if you did then, well pm for more helpos
    I've made way to many mistakes... >.<

    If you wish to come in contact with me, please @ mention me, or vm/pm me, or you can email dareon454@yahoo.com
    Dareo's Inject (made by me and Shunnai) : Dareo's Inject
    Dareo's Inject CA Version V1.0 (made by me and Shunnai) : Dareo's Inject CA Version V1.0

Page 1 of 2 12 LastLast