Well recently I got some problem. When I used screen ./start.sh it started the server but when I closed PuTTy, and re-oppened it I wanted to close the server I did killall screen but my server was still on, when I did ./start.sh I got that a server is already running on that port. The server was open tho but whenever I tried to join I got stuck in syncing pack with server. And I know this stuck problem is because of opening server through screen. Anyway to close a server after opening it through screen? Thanks for reading.
How do you stop your server? You kill it (directly closed the window) or you do "stop"? If you use the first method, then you should never do it again
kill -9 (lsof -t -i :"PORT") this will kill the server on X port note that this may result on data lost