[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?

  1. Hamachi

    45.5%
  2. Port-Forwarding

    51.1%
  3. LAN Play

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

    ImminentFate

    [​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.
    5. If you find you follow all these port forward steps and it still doesn't work, disable windows firewall (or Mac/Linux equivalent) and try connecting again. 95 times out of 100 it will work, unless you run more than one antivirus/firewall program on your computer - in which case I highly recommend getting rid of all but one, since they tend to interfere with each other.
    This site gives a step by step configuration for each router.
     
    Devil0s, Hoppingmad9, sanhard and 2 others like this.
  2. Offline

    Defender2010

    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

    Try going into =>Network Devices on your PC and double clicking on your router there
     
  4. Offline

    HyperJalapeno

    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

    Yes I did thunk about adding that but then decided: meh they'll find out When they do it :p
     
  6. Offline

    HyperJalapeno

    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

    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.

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

    ImminentFate

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

    Zontafer

    PROBLEM: My router isn't on the list for Portforwarding.com My router is a Linksys Wireless-G.
     
  9. Offline

    ImminentFate

    Follow the steps I posted then
     
    BlindingShadowx2 likes this.
  10. Offline

    Ethanbdx

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

    ImminentFate

    you might have to change online-mode to false
     
  12. Offline

    Ethanbdx

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

    ImminentFate

    You need to connect to "localhost". everyone else will use your external ip
     
  14. Offline

    Ethanbdx

    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?
     
  15. Offline

    ImminentFate

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

    Ethanbdx

    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?
     
  17. Offline

    Digitalyzed

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

    ImminentFate

    Is your router set to allow incoming signals on the port?

    Did you follow all the steps properly?

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

    Ethanbdx

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

    ImminentFate

    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?
     
  21. Offline

    Ethanbdx

    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?
     
  22. Offline

    theallcreator

    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?
     
  23. Offline

    ImminentFate

    No its not stickied, but its only a matter of time;)
     
  24. Offline

    ImminentFate

    Are there any other types of server setup people would like help with? please let me know
     
  25. Offline

    Theted



    #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

     
  26. Offline

    ImminentFate

    remove the 5.9.240.65 and set online-mode to false
     
  27. Offline

    Fonzii

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

    DoesntMatter

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

    nggmc

    What do you mean external IP?
    Isnt is usppoosed to be whatismyip.com?
     
  30. Offline

    DoesntMatter

    Okay so to be clear, my friends and I are making a server for Minecraft. It's worked with Hamachi and minecraft_server.jar from the Minecraft website, but when we use Bukkit, it does not work.
     
Thread Status:
Not open for further replies.

Share This Page