Connection Refused: connect

Discussion in 'Bukkit Help' started by lolligertyp, Apr 17, 2011.

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

    lolligertyp

    My Router is a Netgear DG834GTB and I have the 25565 port open, but when I try to connect with my external IP or my dyndns domain I get this error:
    [​IMG]
    When I try to connect to localhost I can connect, but when I use my external IP or my dyndns adress it failed. In my server-properities I try
    Code:
    server-ip=127.0.0.1
    and
    Code:
    server-ip=
    By this value the server log doesn't show any errors but then the error Connection refused came.
    When I try
    Code:
    server-ip=95.33.***.***
    or
    Code:
    server-ip=loll*************.***
    I get this error:
    2011-04-16 18:14:29 [INFO] Starting Minecraft server on loll************.***:25565
    2011-04-16 18:14:29 [WARNING] **** FAILED TO BIND TO PORT!
    2011-04-16 18:14:29 [WARNING] The exception was: java.net.BindException: Cannot assign requested address: JVM_Bind
    2011-04-16 18:14:29 [WARNING] Perhaps a server is already running on that port?
    Here my Firewall Settings (Router based, Windows Firewall is completly off):
    [​IMG][​IMG]
    And here the Port testing:
    [​IMG][​IMG]
    Here my DynDNS Updater Window:
    [​IMG]
    - Also I tried to use other ports, but there come the same error.
    - Also I tried to kill the java.exe process, but it doesn't help by the next server start
    (
    )
     
  2. Offline

    Juze

    Keep your server-ip blank.

    server-ip=

    Restart server. Connect to localhost.
     
  3. Offline

    lolligertyp

     
  4. Offline

    Juze

    And you really restarted the server?

    I've heard people on MCF telling me that they cannot have both client and server running at same time.
     
    lolligertyp likes this.
  5. Offline

    fightknight

    it looks as though the port isn't releasing when you shut your server down, are you using the stop comand? or are you just closing the console?
    try shutting down your computer, unplug it, and press the power button a few time to clear the capacitors, plug it back in and start it back up.
    DO NOT try to connect from localhost yet. I have see ppl run into problems with that.
    Then run cmd and type ipconfig (if its windows) and make sure your internal ip address (192.168.*.*) hasn't changed and try to connect to it from another computer in the local network using 192.168.0.215 (or if it has changed , what ever you new internal ip is. if you can connect from another computer, connect from localhost. and then try from other computer again.
     
    lolligertyp likes this.
  6. Offline

    lolligertyp

    Ok, my IP is static and I can connect to 192.168.0.215 from another pc in the network, but with the other pc I cannot connect to my dyndns or my external IP (DynDNS: Connection refused, External IP: Nothing)
     
  7. Offline

    fightknight


    ok cool, are you still getting "FAILED TO BIND TO PORT" at all, like if you connect at localhost then try to connect from other internal computer?
    I'm pretty sure that you just need to get your router configured correctly for portforwarding and you will be good.

    still getting this?
     
    lolligertyp likes this.
  8. Offline

    mughi

    usually, if you put something into server_ip =, you will generally get FAILED TO BIND TO PORT.
    i have yet to see anyone benefit from having that filled in, even if it doesn't cause the issue.

    SO LEAVE IT BLANK

    if it doesn't work when it is blank, then you have some other problem, which needs to be resolved.

    you need to make sure your router has an entry for tcp/udp pointing to your internal address (192...)
    you need to have your friends use the external address
    you need to have firewall entries for upd/tcp in and out
    you need to make sure you do not have firewall entries for java
     
    lolligertyp likes this.
  9. Offline

    lolligertyp

    Ok, when I connect on my Server to localhost it works and when I try to connect with an other PC in the network at the same time to 192.168.0.215 it works too (So, you see there is no firewall on my PC). The "Failed to bind port" error comes only when I do that what mughi said I should not do and then I cannot connect to the Server.
     
  10. Offline

    mughi

    you are sending mixed signals here:

    you say it works from localhost, and it works from another machine on your network.

    when it works like that, is there anything in server_ip or not?

    if there is, then i'm confused, if not, then that makes sense, and the next question is, when does it not work?

    it sounds like everything works except for external access.. in that case, the problem is in your ROUTER

    you need to have a port open for 25565 (or whatever your server runs on) for tcp AND upd, going to your server's INTERNAL ADDRESS (192.168.0.215)

    once that is set, have someone else try using your external IP ADDRESS first
    if that doesn't work, dyndns never will.. then try dyndns name

    from your screenshots (which have annoying popups btw), i see that you tested it at some point. I would still double check the settings. maybe your internal IP changed

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

    lolligertyp

    No, actually and the time I tried, I don't have anything there.
    See this: http://www.pic-upload.de/view-9612575/dienst.png.html
    and this
    http://www.pic-upload.de/view-9612580/firewall.png.html
     
  12. Offline

    fightknight

  13. Offline

    lolligertyp

    look at the first post, there are screenshots about that what you posted there. I do it exactly as there.
     
  14. Offline

    fightknight

    sorry spending a lot of time woth google translate LOL
    are you able to have someone try to connect from outside the lan? if you would like me to try send me private with your ip.
    could you post a screen shot like this one for inbound and outbound pls.
     
  15. Offline

    lolligertyp

  16. Offline

    PBoYx_

    Do you have two routers? To check goto Router Status and Look Under Port and Where It Says IP It Shouldnt Have 192.168.x.xx

    Picture:
    [​IMG]

    If it has a different Ip than 192.168.x.xx then click connection status and it should look like this:
    [​IMG]
    and copy your gateway and enter it into your url bar.

    Then log into that router and goto your port forwarding page and port forward the ports or just DMZ it and it should work. I had the same problem as you and this fixed it!
     
    lolligertyp likes this.
  17. Offline

    lolligertyp

    The problem is solved, a friend can connect to my external ip, i not.
     
Thread Status:
Not open for further replies.

Share This Page