Failed to bind to port?

Discussion in 'Bukkit Help' started by baconfergus, Jul 18, 2017.

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

    baconfergus

    Before you tell me that there are hundreds of posts that solve this problem, I've looked through over 20 of them and none of them solve my problem, and they won't let me post any further replies. All they say is "Make sure that your 'server-ip= [blank]', as in there's supposed to be nothing there. I've always had it blank, I've never set it to anything, I did Ctrl+Alt+Delete to make sure no Cmd Prompt windows were running in the background, and only Windows ones were. None of the previous posts have helped me, here is my server console startup:

    C:\Users\[CENSORED]\Desktop\our server>java -Xms1024M -Xmx1024M -jar craftbukkit.ja
    r nogui
    Loading libraries, please wait...
    [16:31:14 INFO]: Starting minecraft server version 1.12
    [16:31:14 INFO]: Loading properties
    [16:31:14 INFO]: Default game type: SURVIVAL
    [16:31:14 INFO]: Generating keypair
    [16:31:15 INFO]: Starting Minecraft server on *:25565
    [16:31:15 INFO]: Using default channel type
    [16:31:15 WARN]: **** FAILED TO BIND TO PORT!
    [16:31:15 WARN]: The exception was: java.net.BindException: Address already in u
    se: bind
    >
    C:\Users\[CENSORED]\Desktop\our server>pause
    Press any key to continue . . .

    Thanks for helping! Please don't say check that my server-ip is blank, because it has been forever.
     
  2. Offline

    Zombie_Striker

    @baconfergus
    Do you have any other applications running on your system? Have you tried restarting your computer?
     
  3. Offline

    FrostDevStudios

    @baconfergus
    This could be because you are running multiple applications that run that port
     
  4. Offline

    baconfergus

    @Zombie_Striker @FrostDevStudios As I said I've looked through many different threads and none of them helped, I tried restarting my computer and I use the common 25565 port and I have no other things running, because that's what they all say in the other threads. I've tried everything listed in other threads and nothing works.
     
  5. Offline

    Zombie_Striker

    @baconfergus
    Try using canyouseeme.org and see if port 25565 is open. If it is, and you are not running the server at that time, another program is using that port and you will need to close that program. If it is not open, then you most likely have not port forwarded correctly.

    BTW: This is not the problem now, but in the future, the -Xmx tag may crash the server. That says it can only use 1024MB of memory, and it will shut down the server if it goes over that. So, remove that tag in the future.
     
  6. Offline

    baconfergus

    @Zombie_Striker but there aren't any other programs running on my computer. Right now, it's only Google Chrome, Spotify and the folder of my server. There's nothing else running, even when I do Ctrl+Alt+Delete and see if anything is running in the background.

    EDIT: I just tried re-port-forwarding my server and I still got the same error message. For port forwarding, it's TCP/UDP, the IPv4 is my computer, IPv6 is blank, name is Minecraft Server, and the start/end port is 25565
     
  7. Offline

    FrostDevStudios

    @baconfergus
    If you are on a Windows Computer, Go to your task manager and force quit all the tasks
    If you are on a Apple computer, Go to your activity monitor and force quit all of the tasks

    Either do the listed above, Or try Shutting Down your computer. Dont Restart, Press Shutdown then turn it back on manually

    Hopefully this helps
     
  8. Offline

    Zombie_Striker

    @FrostDevStudios
    Ending tasks should not be the first thing.

    @baconfergus
    Have you tried checking the port? Doing this will determine if there is a problem another program (if the port is open) or if it is a problem with the portforwarding (if it is closed.)
     
  9. Offline

    baconfergus

    @FrostDevStudios as I've already said, I tried restarting my computer and that didn't work.

    @Zombie_Striker I checked my port already, as I've already said, and there was nothing wrong, and I tried re-port-forwarding and that didn't help.
    I just tried deleting the port forward through the router, and I still get the same error message.

    So far, I've tried restarting my computer, checking the port for errors, re-port-forwarding the port, deleting the port, making sure my server-ip is blank, and updating Spigot to the latest version, so please don't tell me again that I need to do these. I've already tried and they don't work.
     
  10. Offline

    timtower Administrator Administrator Moderator

  11. Offline

    baconfergus

    @timtower I did try a different port and it worked, but I've already had my server up for a while now and have gained a lot of players and the server being down for a week now is hurting my player base, and there's no way I can tell everyone that the ip or port changed.
     
  12. Offline

    Zombie_Striker

    @baconfergus
    Out of curiosity, do you happen to have any other computers on your network? If so, are any of those other computers running a server, or anything else that is using that port? A network can only have one application per port, so only one system in the network can host a server on 25565.

    If not, then I would need to ask you if anything has changed since the last time your server was running. Have you downloaded any applications/files since your server worked?
     
  13. Offline

    baconfergus

    @Zombie_Striker Theres 4 other computers on the network, but I've gone through them, and none of them run servers. 3 of them are laptops and they're always off so they couldn't be interfering. And I haven't changed anything since it stopped working, like it just didn't work one day and I'm not sure why.
     
  14. Offline

    Machine Maker

    @baconfergus
    If your phone has a personal hotspot/tether feature, try connecting your computer to that network and starting the server.
     
Thread Status:
Not open for further replies.

Share This Page