← All guides

"FAILED TO BIND TO PORT" on a Minecraft Server: Causes and Fixes

Updated December 3, 2026 · 6 min read

You start your server and, instead of Done!, the console prints a warning with four stars in front of it and the server shuts down. The good news: nothing is wrong with your world or your mods. The server just could not claim its network port, and the fix usually takes a minute.

Short answer
"FAILED TO BIND TO PORT" means the server could not open its port. If the next line says Address already in use, something is already using that port, almost always another copy of the server still running. Close it (or end the leftover java process) and start again. If it says Cannot assign requested address, the server-ip= line in server.properties has an address your computer does not have. Leave it empty.

What the error looks like

On a vanilla, Paper or modded server you will see something like this in the console or in logs/latest.log:

[Server thread/WARN]: **** FAILED TO BIND TO PORT!
[Server thread/WARN]: The exception was: java.net.BindException: Address already in use: bind
[Server thread/WARN]: Perhaps a server is already running on that port?

The middle line is the important one. Its wording changes with the operating system, but it will contain one of two phrases:

Phrase in the error What it means
Address already in use Another program already holds the port
Cannot assign requested address server-ip is set to an address this machine does not have

To understand ports in general, see port 25565 explained.

Cause 1: The server is already running (most common)

A Minecraft server can only have one copy on each port. If an older copy is still running, the new one can't start. This happens when:

Fix: find the old process and stop it. If you can still reach its console, type stop so it saves the world properly. If you can't, use the commands below.

How to find what is using the port

Replace 25565 with your port if you changed it.

Windows

Open Command Prompt and run:

netstat -ano | findstr :25565

Look for a line that says LISTENING. The last number on that line is the process ID (PID). See which program it is:

tasklist /FI "PID eq 12345"

If it is java.exe or javaw.exe and you are sure it is your old server, end it:

taskkill /PID 12345 /F

You can also open Task Manager, go to the Details tab, and end that PID there. Forcing a process to close skips the save, so only do it if the old server is frozen or you have no way to type stop.

Mac

Open Terminal and run:

lsof -nP -iTCP:25565 -sTCP:LISTEN

The output shows the command name (usually java) and its PID. Stop it with:

kill 12345

If it is still there after a few seconds, use kill -9 12345 as a last resort.

Linux

sudo ss -ltnp | grep 25565

The output includes pid=12345. Then check for a forgotten session first:

screen -ls
tmux ls

If the server is in one of those, reattach (screen -r name or tmux attach -t name) and type stop. If not, kill 12345 stops the process. If you run the server as a systemd service, stop it with sudo systemctl stop yourservice instead, or it will just be restarted.

The quick option

If you don't want to hunt for it, restarting the computer clears every leftover process. Just make sure the server is not set to start on boot, or you will be back where you started.

Cause 2: Two servers on the same port

If you run more than one server on the same machine (for example a survival world and a creative world, or a test server), each needs its own port. Open each server's server.properties and give them different values:

server-port=25565
server-port=25566

Players then join the second one with your-address:25566. Ports from 25565 up to around 25600 are a common choice for extra servers.

Cause 3: The server-ip line is wrong

This is the cause when the error says Cannot assign requested address. The server-ip setting tells the server which network address on this computer to listen on. People often put their public IP there, thinking that is how friends will find the server. But a home computer behind a router does not actually have the public IP, so the server can't listen on it.

Fix: leave it empty:

server-ip=

An empty value means "listen on every address this machine has", which is what almost everyone wants. Friends still connect with your public IP or domain. Only fill this in if your machine has several network addresses and you deliberately want to use one of them.

Cause 4: Another program uses the port

This is rare for 25565, but if you picked a random port number, something else on the computer might already use it. The commands above show which program owns it. Either close that program or pick a different server-port.

A few related things that look similar but are not this error:

On a server host

On a hosted server you normally don't touch server-port or server-ip at all. The host assigns your port, and many hosting panels rewrite these two lines every time the server starts. If you see this error on a host:

  1. Make sure you did not start a second server process from a plugin or a custom start command.
  2. Check that a plugin (a web map, a vote listener, a voice chat mod) is not configured to use the same port as the game. Each of those needs its own port.
  3. Restart the server once and wait. If it still fails, contact support, since a stuck process on the host side is something they need to clear.

After it starts

Once the server binds, the console shows Done and players can join. If they still can't connect after that, the problem is network access, not the port binding. These help next:

On FreaksMC the port and address are set by the panel for you, so if you ever see this error there, email support and we will sort it out.

Want a server that just runs fast?

FreaksMC servers run on AMD Ryzen 9 7950X3D processors with fast NVMe storage. Pick vanilla, Paper or a modpack and your server is ready in minutes.

See plans from $4/mo

We use cookies for analytics & ads to measure how our site performs. Essential cookies always run. See our Privacy Policy.