connect()
Connect to a remote server.
Usage
connect(
host,
port=8080,
)Parameters
host: str-
The hostname or IP address to connect to.
port: int = 8080-
The port number. Defaults to 8080.
Returns
bool-
True if the connection was successful.
Raises
ConnectionError-
If the server is unreachable.