You cannot just connect to any port on any host. The remote host must actually be listening for connections on that port.
You cannot just connect to any port on any host. The remote host must actually be listening for connections on that port.
You can use the constructors to determine which ports on a host are listening for connections.