If the server cannot connect the port when it starts up, another process may be listening on that port or an IP that does not belong to the machine may have been written in the configuration.
Step by step
-
Note the port listed in the log. Call the Java listener with
ss -ltnpon Linux,Get-NetTCPConnection -LocalPort 25565 -State Listenin Windows PowerShell. -
If you have started the same server twice, first shut down the running instance properly from the console. Random termination without knowing what the process is.
-
If two servers will work together, give each a different port. If you typed a public IP that does not exist on the machine in the
server-ipfield, correct the binding setting. -
Restart the server and see if the expected port is listened to. If the port has changed, also update your modem, firewall or proxy rules.
Keep in mind
Also check the UDP listeners for Geyser and Bedrock, just looking at the Java TCP list may not be enough.