Answer the question
In order to leave comments, you need to log in
How to close a connection in linux?
Wrote a simple server in java. Then I closed the console, then again I try to start the server and writes that the address is already in use and does not receive data from the client program. How to close the connection in linux so as not to restart the computer?
Answer the question
In order to leave comments, you need to log in
Set the SO_REUSEADDR option to the created socket . I
also recommend an excellent book .
I think your java server is not dead.
Look in the list of processes, if it is there, then just do a kill
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question