So i accidentally closed my server today. There were players connected.
It had just saved so I didn't think it was that big of a deal, but when I went to start up the server again it would not let me!
This is the error message:
*** 01:23:19 Failed to start the server!
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at com.mojang.a.a.(Unknown Source)
at com.mojang.minecraft.server.MinecraftServer.(Unknown Source)
at com.mojang.minecraft.server.MinecraftServer.main(Unknown Source)
It seems there were open connections. I did a netstat and found two lines like these.
you can't, killing the process means that the process ends and server is unconnectable, but the port is still in use. If you kill the process, edit server.properties, change the port and restart. It's the only way.