connect()
Connect to a remote host.
Usage
connect(
host,
port=8080,
)Parameters
host: str-
The hostname or IP address to connect to.
port: int = 8080-
The port number to use. Defaults to 8080.
Returns
bool-
True if the connection was successful, False otherwise.