[FAQ] How do I Forward Ports?

Discussion in 'Bukkit Help' started by Bertware, Dec 28, 2011.

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

    Bertware

    Since this question is returning regularly, I decided to write this small manual.

    Do I need Port forwarding?
    Do you have a router? If so,Yes.
    Do you have multiple computers at home, that share the same internet connection? If so, Yes

    How do I forward Ports?
    You have to know the IP of your router.
    You can get you router's IP by doing the following:

    Open CMD (linux users: Terminal)
    Execute the "ipconfig" command (Linux users: ifconfig)

    There might be information from different adapters.
    There should be 1 adapter with the following information:
    IPv4 Address (Linux users: Inet)
    Standardgateway (Linux Users: BCast (Someone please confirm))

    IPv4 address is your internal IP address. Remember this, write it down, you'll need this later.
    StandardGateway is your router's IP.

    Now enter your router's IP in your browser.
    You will have to login. The way you have to do this might be different depending on your router's manufacturer.
    The username is almost always "admin". You have probably changed the password when you installed your router. Enter the password. If you didn't change the password, refer to the manual for the default password.

    Once you logged in, Search for an option called "Port forwarding" or "Virtual server".
    Now you can add a rule, to forward port 25565 to your internal IP.

    Now you're done. Try if someone can connect to your server.

    Want to check if others can connect?
    Start your server and visit this URL:
    http://automation.bertware.net/bukkit/server.php (might not work on 1.2.3 and higher)

    Note:
    If the server is running on the same computer you play: Enter localhost as ip
    If the server is running in your LAN (at your home): enter the internal IP
    If the server is running on the internet (outside your house): enter the external IP or hostname

    I hope this thread helps some people out, Greets,
     
  2. Offline

    pyraetos

    I would like to add that in Linux, you use
    Code:
    ifconfig
    to find your local IP and that of the router. Also, in any platform you can find a DHCP Clients list in your router's interface which will include your local IPv4 address.
     
  3. Offline

    Bertware

    So if you use ifconfig, Bcast is the router's IP? I'm not that familiar with linux, just tried ifconfig on my Virtual machine.
     
  4. Offline

    pyraetos

    No, running it with no options should list the network configuration.
     
  5. Offline

    CaramelBird

  6. Offline

    Bertware

    That should work indeed :)
    you might want to give this a try:
    run your server, and go to the following URL in your browser .
    If your port forwarding is correct and the server is running this should result in a small overview of your server.
    http://automation.bertware.net/bukkit/server.php
     
  7. Offline

    CaramelBird

    Bertware it didn't work. I asked a friend to go onto the server after I set that! and they said 'It doesn't work'. :(
     
  8. Offline

    Bertware

    Open your server.properties.
    server port should be 25565

    What's your computers interal IP?
     
  9. Offline

    CaramelBird

    192.168.2.6 is my internal ip
     
  10. Offline

    Bertware

    You forwarded the port to 192.168.2.1. Replace this with 192.168.2.6 ;)
     
  11. Offline

    CaramelBird

    Oh okay :)

    Can you please test it for me? If you don't mind.

    86.12.68.220:25565

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

    Bertware

  13. Offline

    CaramelBird

    Now the server wont start :(

    It says

    at net.minecraft.server.ThreadServerApplication.run<Sourcefile:57>

    It says alot of stuff before that, but I can't write it all out. Help? :(
     
  14. Offline

    Bertware

    Start a new thread, it's a different problem, and give the COMPLETE error message.
     
  15. Offline

    benthamanowns

    hey u know how to port forward im guessing?

    can you give a even more detailed explanation on how to port forward?
    i have a motorola netopia lol
    its way different than what words u were using
     
  16. Offline

    Bertware

    Did you get that router from your internet provider, or did you bought it yourself?
     
  17. Offline

    benthamanowns

    my mom bought it for me
     
  18. Offline

    Bertware

    in that case, you should be able to access the router, and to access those settings.
     
  19. Offline

    Mooey123

    What happends if I put iconfig in my cmd and don't get a IPv4 Address and only an IP Address?? Are they the same?? Which one is my router?
     
  20. Offline

    Bertware

    your router IP adress is in most cases something like 192.168.x.x
    Your external IP can be anything
     
  21. Offline

    kriegergeist02

    I found the internal address, but when I enter it in the FireFox browser it just says its not something it can go to because its nothing.

    Firefox can't establish a connection to the server at 192.168.1.7.

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

    Bertware

    try: 192.168.1.0 or 192.168.1.1
    I guess that 192.168.1.7 is your computer IP.
     
  23. Offline

    el_freakyfrog

    I've got a strange issue. I have a .bat file set up to start the server at max memory and works fine, server works fine, my girl and i play all the time, however I dl'ed the gui as i wasn't getting a console window. I understand software and how it needs a target and pointed the gui to my server file the .jar file not the .bat, as i noticed it didn't need the .bat file with the gui's onboard memory allocation. Mind you my server is ported correctly, as I can use the server still without the gui, however with the gui, I start the server and I cant connect and the server appears to be offline. When i close the gui, I get spammed with server start errors which is probally due to plugins not having been updated for the new 1.2.5 build, so I get the impression the gui is freezing up on me and failing to start the server correctly. Any suggestions?

    EDIT: I removed the plugins that didn't work and the gui still seems to freeze after this "6:40:03 PM 182 recipes
    6:40:03 PM 27 achievements..."
     
  24. Offline

    Bertware

    Known bug in my GUI, however, about hte GUI, there's a separate topic and bukkitDev page ;)
    Check your firewall/antiviruse/... (GUI should be allowed to connect to internet, to connect to java.exe, to connect to the .jar)
    It seems like one of the threads isn't running.
    I'm currently working on a rewrite, that will fix the problem.
     
  25. Offline

    Jokerdeath44

    i have a prob with portforwarding when i type my ip it says:This site is running TeamViewer.

    Free Port 80 for other applications in advanced settings.

     
  26. Offline

    Bertware

    What operating system are you using?
    You need to enter the IP found as "standardGateWay" when you enter "ipconfig" in cmd, in your browser.
     
  27. Offline

    jimmythesurfer

    i have this Ethernet adapter Hamachi:

    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 5.237.216.173
    Subnet Mask . . . . . . . . . . . : 255.0.0.0
    Default Gateway . . . . . . . . . :

    Ethernet adapter Local Area Connection:

    Media State . . . . . . . . . . . : Media disconnected

    Ethernet adapter Wireless Network Connection:

    Connection-specific DNS Suffix . : arnhem.chello.nl
    IP Address. . . . . . . . . . . . : 192.168.1.100
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.1.1
    AND I AHEV NO IDEA WHAT WHAT IS could u tell me whitch ip i need to use! please
     
  28. Offline

    Bertware

    You don't need port forwarding if you use hamachi. Though, hamachi is not recommended.
     
  29. Offline

    daddysboy2001

    wont work :( help

    copy and paste

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

    Bertware

    problem with bukkit. Try creating a new server (so fresh bukkit.jar, no plugins)
     
Thread Status:
Not open for further replies.

Share This Page