grizeldi grizeldi - 2 years ago 99
Java Question

What happens on closing ServerSocket

What happens to client Sockets when I close a ServerSocket?
Will all connections made with serverSocket.accept() be closed as well?

Answer Source

Closing a ServerSocket will prevent new connections from being created, but it won't shut down existing connections.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download