This exception signals that a socket could not be connected to a remote address and port. This means that the remote host could be reached, but is not responding, perhaps because there is no process on that host that is listening on the specified port.
public class ConnectException extends SocketException { // Public Constructors public ConnectException(String msg); public ConnectException(); }
Object->Throwable(Serializable)->Exception->IOException->SocketException->ConnectException