Sockets Exceptions
BindException :
- Thrown if the socket tries to use a local port that is busy or if the program has not enough priviligies to use that port.
ConnectException :
- No connection to the remote host. No server is running on that port.
-
NoRouteToHostException :
- There is no path over the network to the remote host.
SocketException :
- Something went wrong in the socket which is not covered by the above exceptions.