NexthostingLogs

Logs / Error guide

“FAILED TO BIND TO PORT” – port already in use

What the message means

The server wanted to open its port (25565 for Minecraft, 27015 for Source, 30120 for FiveM), but the port is already taken. Without a port, nobody can connect, so the server usually shuts down right away.

What it looks like in the log

[16:44:02] [Server thread/INFO]: Starting Minecraft server on 0.0.0.0:25565
[16:44:02] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
[16:44:02] [Server thread/WARN]: The exception was: java.net.BindException: Address already in use
[16:44:02] [Server thread/WARN]: Perhaps a server is already running on that port?

Excerpt from an example log, marked the way the analysis marks it.

Common causes

  • The server is already running – for example a second process after a restart that didn't shut down cleanly.
  • The configuration contains an IP address or port that isn't assigned to the server (server-ip in server.properties, +ip, endpoint_add_tcp).
  • A plugin or mod (Dynmap, BlueMap, voice chat, query) uses the same port as the server.
  • Two services in your plan are set to the same port.

How to fix it

  1. Stop the server completely (“Stop” in the panel, “Kill” if it hangs) and start it again.
  2. For Minecraft, leave server-ip in server.properties empty and use the port that is assigned to you.
  3. Check the ports of plugins like Dynmap, BlueMap or Simple Voice Chat – they need their own, free port.
  4. If the error stays even though the server is stopped, contact your host's support.