1

**** FAILED TO BIND TO PORT! Error

PrivateHazard 3/26/16 3:16 pm
2.1k
4/2/2016 12:15 pm
I recently updated my server and threw away the old one. So, I decided to test the server using localhost. It works! So, I send my friend to try it out (Note: I use port map to manage my Ports). He can't join, so I try it using my IP (Instead of using localhost on the server edit menu) and it doesn't work. I change it using sever.properties... it doesn't work. And it gives me this text.

My-Mac-mini:~ guy64$/Users/someguy64/Desktop/Spigot\ Server\ 1.9/start.command ; exit;
Loading libraries, please wait...
[13:56:03 INFO]: Starting minecraft server version 1.9
[13:56:03 INFO]: Loading properties
[13:56:03 INFO]: Default game type: CREATIVE
[13:56:04 INFO]: This server is running CraftBukkit version git-Spigot-86016ba-94ba824 (MC: 1.9) (Implementing API version 1.9-R0.1-SNAPSHOT)
[13:56:04 INFO]: Debug logging is disabled
[13:56:04 INFO]: Server Ping Player Sample Count: 12
[13:56:04 INFO]: Using 4 threads for Netty based IO
[13:56:04 INFO]: Generating keypair
[13:56:05 INFO]: Starting Minecraft server on <MY IP>:25566
[13:56:05 INFO]: Using default channel type
[13:56:05 WARN]: **** FAILED TO BIND TO PORT!
[13:56:05 WARN]: The exception was: java.net.BindException: Can't assign requested address
[13:56:05 WARN]: Perhaps a server is already running on that port?
[13:56:05 INFO]: Stopping server
[13:56:05 INFO]: Saving players
>logout

[Process completed]


I don't know what to do... it works fine when I change both IP entering locations to localhost, but when I use my REAL IP (With Portmap turned ON) it doesn't work. Please help me. If you can fix email me (@miles.d.nye@gmail.com) or reply in the comments.
Posted by
PrivateHazard
Level 23 : Expert Nerd
5

  Have something to say?

JoinSign in

6

loganmbutler
04/02/2016 12:15 pm
Level 11 : Journeyman System
When you get the "failed the bind port" error, it's because your computer has already detected a server running on the port you defined in the server you're trying to start.

Solution 1.) (mac) Open your terminal, and type this command:

sudo kill -l

Then find MINECRAFT, or something related. There will be a number next to it, then:

sudo kill 123
123 is just an example...use the number you find.

Solution 2.) (mac) Open the folder you're using to keep your server in, and open the "server.properties" and edit the line that begins with "port" and change 25565 to 25566 or something other than the default value.
1
macgarthur
03/30/2016 12:27 am
Level 18 : Journeyman Network
The port is already bound. This happens sometimes when the server doesn't shutdown correctly. You can unbind the port (easy way is reboot the computer) and try again.
1
oggehej
03/27/2016 4:07 am
Level 18 : Journeyman Toast
Are you getting the same error? In that case, try opening up task manager and kill everything that has to do with java. It can happen that the server starts in the background if you don't start it using the bat file.
1
PrivateHazard
03/29/2016 6:17 pm
Level 23 : Expert Nerd
I use a Mac...
1
oggehej
03/26/2016 4:12 pm
Level 18 : Journeyman Toast
Make sure your server-ip setting in the server.properties is blank.
1
PrivateHazard
03/26/2016 4:48 pm
Level 23 : Expert Nerd
I tried again with what you said and it still didn't work...
1

Welcome