Eric, It is OS dependant how long it takes a socket is reused after a program abort.
Possible solutions/workaround: 1. Register a ShutdownHook that gracefully close your server socket in the case of an abort. This works well with NT. 2. Try to use signal -2, should be same as CTRL-C in the console. Regards Frank-Olaf Lohmann >>> [EMAIL PROTECTED] 16.08.2002 07.51 Uhr >>> Hi All, I'm using SocketServer as a central point of logging for all my apps. I start the SocketServer on Solaris 2.8 as a background program. When I want to stop it, I use the 'kill' command. This works fine but when I'm not able to restart the SocketServer because the IP port has not been released ! Part of the log : ------------------------------------------------ log4j: Finished configuring. 2002-08-16 08:27:43,125 org.apache.log4j.net.SocketServer org.apache.log4j.net.SocketServer - Listening on port 10012 java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405) at java.net.ServerSocket.<init>(ServerSocket.java:170) at java.net.ServerSocket.<init>(ServerSocket.java:82) at org.apache.log4j.net.SocketServer.main(SocketServer.java:97) ------------------------------------------------- Not that when I start the SocketServer as a foreground program, I have no problem because I stop it by sending a 'CTRL-C' command. Thanks in advance for a solution. Eric ______________________________________________________________________________ Pour mieux recevoir vos emails, utilisez un PC plus performant ! Découvrez la nouvelle gamme DELL en exclusivité sur i (france) http://www.ifrance.com/_reloc/signedell -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>