Results 1 to 8 of 8

Thread: How to free a port number

  1. #1
    Join Date
    Sep 2012
    Beans
    8

    How to free a port number

    13:51:51 [INFO] Starting Minecraft server on *:25565
    13:51:51 [WARNING] **** FAILED TO BIND TO PORT!
    13:51:51 [WARNING] The exception was: java.net.BindException: Address already in use
    13:51:51 [WARNING] Perhaps a server is already running on that port?

    Trying to get a server going for my grandson to teach him how to use linux but I keep getting this error trying to load server. Command I'm using is, java -Xms1024M -Xmx1024M -jar craftbukkit.jar nogui


    any suggestions?


    Thanks, Tyler's Papa

  2. #2
    Join Date
    Dec 2007
    Location
    Idaho
    Beans
    4,976
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: How to free a port number

    That's not port 25, that's port 25565.

    You can see what is using that port with

    Code:
    sudo netstat -tlp | grep 25565
    Are you positive that there isn't already an instance of minecraft running?
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  3. #3
    Join Date
    Sep 2012
    Beans
    8

    Re: How to free a port number

    tcp6 0 0 [::]:25565 [::]:* LISTEN 3693/java

    Yea looks like java is using it how do I kill it? I'm learning along with my Grandson... Thx!
    Last edited by Tyler Lusk; September 10th, 2012 at 09:26 PM.

  4. #4
    Join Date
    Dec 2007
    Location
    Idaho
    Beans
    4,976
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: How to free a port number

    Sounds like you already have a minecraft server running (Java is what would show up if minecraft was using that port)

    Have you tried connecting to it from another computer?
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  5. #5
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How to free a port number

    Moved to own thread.

    @Tyler Lusk, the thread you posted to had been dead for over 4 years. Please start your own threads. Thanks.
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  6. #6
    Join Date
    Jan 2009
    Location
    South Carolina
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to free a port number

    Run & post the output of:
    Code:
    ps ax | grep java

  7. #7
    Join Date
    Sep 2012
    Beans
    8

    Re: How to free a port number

    I got it...I just rebooted the system and it's working now...Thank you. Now I need to learn how to install bukkit commands...Oh Boy! Any Minecraft fans out there? I hope somebody created a GUI for all this stuff...wish me luck!

    Tyler's Papa

  8. #8
    Join Date
    Sep 2012
    Beans
    8

    Red face Re: How to free a port number

    Quote Originally Posted by coffeecat View Post
    Moved to own thread.

    @Tyler Lusk, the thread you posted to had been dead for over 4 years. Please start your own threads. Thanks.

    Ok sorry!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •