[TUTORIAL]Running a Server: Port-Forwarding, Hamachi...

Discussion in 'Bukkit Help' started by ImminentFate, Jul 19, 2011.

?

What do you use to let your players join your server?

Hamachi 310 vote(s) 45.7%
Port-Forwarding 344 vote(s) 50.7%
LAN Play 24 vote(s) 3.5%
  1. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [IMG]
    ====NOTE!! This does not show you how to make a server. It only shows the configuration required to get one working depending on how you want to use it. If you are starting from scratch and don't know what to do,view my other post here.====




    Overview:
    Once you've created your server, you'll no doubt want to let other people join. However, you may encounter a problem here: You start up the server, and it all works fine, up until someone tries to join. They simply can't. They either get a "Connection Time Out" error, or it will just stay at the Connecting screen.
    There is a simple reason for this: Your network is not allowing the outside world to connect to your game.
    To let others connect to your server, you can set it up in two ways.
    Port-Forwarding, or Hamachi
    Port-Forwarding will let other people connect to your server without any special programs required. It's how you connect to most servers.
    Hamachi has the downside that everyone who wants to play on your server has to have Hamachi as well. This is troublesome, but is often used when one cannot port forward.

    Hamachi:
    1. You obviously need Hamachi for this to work. Hamachi is probably the easiest way to let people from around the world join your server. Download it here.
    2. To run a hamachi server you need to configure your server.properties file as follows:
      • server-ip - leave this blank
      • server port - leave this as default (25565)
      • You may or may not have to set online-mode to false for it to work.
    3. Open up Hamachi. If you have not already created a new network, do so now. This is what other users will use to connect to your network and join your server
    4. When you give out your ip address for other people to join, make sure you use your hamachi one (should be something like 5.64.312.48)
    Port-Forward:
    To be able to play with other people around the world, without wanting to set up a server through Hamachi or a VPN, use port-forwarding. Port-forwarding simply allows you to host the server on your own PC and lets other people connect to your computer. This is useful since the players do not require any other program besides minecraft to play.
    1. Server.properties file should be configured as following (same as Hamachi)
      • server-ip - leave this blank
      • server port - leave this as default (25565) (yes you can change it, but for newcomers leave it as default)
    2. Step two can be done in two ways: The easy way, or the DIY way. Doing it yourself is not necessarily harder, but sometimes it can be a pain in the neck. If you would prefer an easy way to port-forward, see this page. The manual method is depicted below:
      • If you know your router's ip address (most likely something like 192.168.0.1), then type that into your address bar in your web browser.
        • If not, enter command prompt and type "ipconfig". scroll down to where it says IPv4 address. Type that into your browser, replacing the last number with a 1.
      • You will need to allow connection to the port 25565. This can be found under "Services", "Ports", or whatever your router calls the setting. You will need to open the port by doing as follows: (example using Netgear DGN3500 - should be similar for most routers)
        • Click "Add Custom Service" (or new rule)
        • Create a name for the service rule , e.g "Minecraft Port"
        • Select "TCP" or "TCP/UDP" as the type
        • The start port and finish port should be the same.
      • The next step is to configure firewall rules. GO into your firewall page on your router and add new rule. Select the service you created in the last step (for this example Minecraft Port) and set it to be always allowed
    3. You will need to work out your external ip: this can be easily found here (note that this may change if your internet server assigns you a dynamic ip)
    4. Now for how to connect:
      • If you want to connect to your own server, run minecraft.exe and type in "localhost" in the Multiplayer screen. This will allow you to connect to your server only if you are on the same system as the server.
      • All other players will need to connect using your external ip address.
    This site gives a step by step configuration for each router.

    This post has been edited 3 times. It was last edited by ImminentFate Jun 21, 2012.
    Devil0s, Hoppingmad9, sanhard and 2 others like this.
  2. Offline

    Defender2010

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You dont get it!!!
    I know how to port foward, but the priblem is i CANT.
    I do what you said, and ive doen it before, and it worked.
    But when i type it in browser bar, it says page moved or down, its been like this for a month now :[ so i cant port foward if i can't get into my router's manager
  3. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Try going into =>Network Devices on your PC and double clicking on your router there
  4. Offline

    HyperJalapeno

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    OMFG I LOVE YOU! This works perfectly and it's completely noob-proof. Thanks!
    One tip though: You may want to add the information that when they enter their IP in their browser it usually asks for a name/password. For Netgear the default it "admin; password" and Lynksis I think is "admin; admin" other than that it's perfect and I love how it's 24/7. Thanks!
  5. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes I did thunk about adding that but then decided: meh they'll find out When they do it :p
  6. Offline

    HyperJalapeno

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    One problem, whenever somebody tries to get stuff..they take something (like wood or dirt) and it won't give it to them when they destroy the block..like it's supposed to go into your inventory but it doesn't. We're not too close to the spawn either. How do I fix this? Please help soon. Thanks
  7. Offline

    HyperJalapeno

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    One more thing, anybody can do anything. Everybody can change time, spawn TNT, turn on god mode...anything. What can I do? Please help I really would like to get this fixed immediately.
  8. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    it means they don't have any special priveleges on your server. Use permissions to allow them to do things
    It could also mean that there is lag on your server, causing the server to take time before it realises someone is trying to pick something up
  9. Offline

    Zontafer

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    PROBLEM: My router isn't on the list for Portforwarding.com My router is a Linksys Wireless-G.
  10. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Follow the steps I posted then
    BlindingShadowx2 likes this.
  11. Offline

    Ethanbdx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I get this error message when I leave my ip blank:
    2011-07-22 19:08:57 [INFO] Starting minecraft server version Beta 1.7.3
    2011-07-22 19:08:57 [INFO] Loading properties
    2011-07-22 19:08:57 [INFO] Starting Minecraft server on *:25565
    2011-07-22 19:08:57 [WARNING] **** FAILED TO BIND TO PORT!
    2011-07-22 19:08:57 [WARNING] The exception was: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
    2011-07-22 19:08:57 [WARNING] Perhaps a server is already running on that port?

    but when I use my ipv4 it runs normally but I cant connect it says 192.168.1.150 lost connection
  12. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    you might have to change online-mode to false
  13. Offline

    Ethanbdx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The server runs now,but I get this and cant connect with my external ip
    2011-07-22 23:08:41 [INFO] Starting minecraft server version Beta 1.7.3
    2011-07-22 23:08:41 [INFO] Loading properties
    2011-07-22 23:08:41 [INFO] Starting Minecraft server on *:25565
    2011-07-22 23:08:41 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2011-07-22 23:08:41 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-07-22 23:08:41 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-07-22 23:08:41 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-07-22 23:08:41 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
    2011-07-22 23:08:41 [INFO] Preparing level "world"
    2011-07-22 23:08:41 [INFO] Preparing start region for level 0 (Seed: 857408699)
    2011-07-22 23:08:42 [INFO] Preparing spawn area: 40%
    2011-07-22 23:08:43 [INFO] Preparing start region for level 1 (Seed: 857408699)
    2011-07-22 23:08:43 [INFO] Preparing spawn area: 32%
    2011-07-22 23:08:44 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-07-22 23:08:44 [INFO] Done (0.299s)! For help, type "help" or "?"
    2011-07-22 23:08:52 [INFO] Connection reset
    2011-07-22 23:08:52 [INFO] /192.168.1.150:54352 lost connection
    2011-07-22 23:09:01 [INFO] Connection reset
    2011-07-22 23:09:01 [INFO] /192.168.1.150:54352 lost connection
  14. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You need to connect to "localhost". everyone else will use your external ip
  15. Offline

    Ethanbdx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah,I can connect but this is what happens when people use my external ip:
    [INFO] Starting minecraft server version Beta 1.7.3
    2011-07-23 05:14:51 [INFO] Loading properties
    2011-07-23 05:14:51 [INFO] Starting Minecraft server on *:25565
    2011-07-23 05:14:51 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2011-07-23 05:14:51 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-07-23 05:14:51 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-07-23 05:14:51 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-07-23 05:14:51 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
    2011-07-23 05:14:51 [INFO] Preparing level "world"
    2011-07-23 05:14:52 [INFO] Preparing start region for level 0 (Seed: 857408699)
    2011-07-23 05:14:53 [INFO] Preparing spawn area: 52%
    2011-07-23 05:14:53 [INFO] Preparing start region for level 1 (Seed: 857408699)
    2011-07-23 05:14:54 [INFO] Preparing spawn area: 60%
    2011-07-23 05:14:54 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-07-23 05:14:54 [INFO] Done (0.264s)! For help, type "help" or "?"
    2011-07-23 05:15:01 [INFO] Ethanbdx [/127.0.0.1:57718] logged in with entity id 138 at ([world] -131.79452260677766, 64.0, -1.6643686692577213)
    2011-07-23 05:15:27 [INFO] Connection reset
    2011-07-23 05:15:27 [INFO] /192.168.1.67:52170 lost connection
    And here`s my server properties:
    #Minecraft server properties
    #Sat Jun 25 00:57:00 CDT 2011
    level-name=world
    allow-nether=true
    view-distance=8
    spawn-monsters=true
    online-mode=false
    spawn-animals=true
    pvp=true
    max-players=3
    server-ip=
    level-seed=
    server-port=25565
    allow-flight=true
    white-list=false
    Any clue whats wrong?
  16. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    My god. Your server port is 52170 but in the server.properties it is 25565. I must be blind did not see it before. Just change the 25565 to 52170
  17. Offline

    Ethanbdx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Okay,changed my port in sever.properties,I also portfowarded 52170 and I can connect using :52170 but when I try my external heres what happens now:
    2011-07-23 09:40:50 [INFO] Starting minecraft server version Beta 1.7.3
    2011-07-23 09:40:50 [INFO] Loading properties
    2011-07-23 09:40:50 [INFO] Starting Minecraft server on *:52170
    2011-07-23 09:40:50 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2011-07-23 09:40:50 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-07-23 09:40:50 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-07-23 09:40:50 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-07-23 09:40:51 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
    2011-07-23 09:40:51 [INFO] Preparing level "world"
    2011-07-23 09:40:51 [INFO] Preparing start region for level 0 (Seed: 857408699)
    2011-07-23 09:40:52 [INFO] Preparing spawn area: 65%
    2011-07-23 09:40:52 [INFO] Preparing start region for level 1 (Seed: 857408699)
    2011-07-23 09:40:53 [INFO] Preparing spawn area: 77%
    2011-07-23 09:40:53 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-07-23 09:40:53 [INFO] Done (0.252s)! For help, type "help" or "?"
    2011-07-23 09:41:06 [INFO] Ethanbdx [/127.0.0.1:60285] logged in with entity id 129 at ([world] -105.59375, 64.0, -4.3125)
    2011-07-23 09:42:38 [INFO] Connection reset
    2011-07-23 09:42:38 [INFO] /192.168.1.150:60299 lost connection
    2011-07-23 09:42:47 [INFO] Connection reset
    2011-07-23 09:42:47 [INFO] /192.168.1.150:60299 lost connection
    But does it make a difference if I tried to connect with a different computer last time,that may be the problem?
  18. Offline

    Digitalyzed

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I've tried port forwarding and using hamachi but neither allow players to join my server. i'm using craftbukkit understandably and installed it with the recommended installer. Whitelist is off but no-one I know can join.
  19. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Is your router set to allow incoming signals on the port?
  20. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Did you follow all the steps properly?
  21. Offline

    Ethanbdx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes,port 25565 and 52170 are both open,but when the port 52170 was a diffent computer trying to connect,and port I get when I try off of my computer is 60299.
  22. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    interesting... Try the website link and check that you set up your router properly
    I'm a bit stumped as to how to help, maybe someone else can?
  23. Offline

    Ethanbdx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I used their port checker,both open,but what I dont get is the port you told me to use was from my sisters computer the one on the recent error is from my computer should I try to change the port to 60299?
  24. Offline

    theallcreator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Aha! Brilliant! It took me some finding to get to my router settings, I typed the Connection-specific DNS suffix, which gave me the right page. Using my IP didn't work.

    Stickied yet?
  25. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No its not stickied, but its only a matter of time;)
  26. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Are there any other types of server setup people would like help with? please let me know
  27. Offline

    Theted

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)


    #Minecraft server properties
    #Mon Jul 25 19:12:08 NZST 2011
    level-name=world
    allow-nether=true
    view-distance=10
    spawn-monsters=true
    online-mode=true
    spawn-animals=true
    max-players=20
    server-ip=5.9.240.65
    pvp=true
    level-seed=
    server-port=25565
    allow-flight=true
    white-list=false

    It starts up fine but if me or anyone wants to connect it doesnt work ! please help and yes my hamachi is open

  28. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    remove the 5.9.240.65 and set online-mode to false
  29. Offline

    Fonzii

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    When i try to put my ip in to port forward it just says acess denied, doesnt ask for a username or pass, just acess denied.
  30. Offline

    DoesntMatter

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    k i have a question, when other people try to join my server they cant conect, were using hamachi and on the notepad file on server properties i put online mode false and i left the server ip blank and everything, this makes no sense, i installed bukkit using the new easy installer that you put up and i start the server, and i go in from my computer using localhost or using my hamachi ip, then im in the server, but then when i go in my other computer, or my friends who lives across the street and i connect to the ip that i have in hamachi that im running where the server is installed it just doesnt connect

Share This Page