connect()

Method. Establishes a connection to the host computer specified in the applet parameter hostURL. Via the API, you can use the getHostURL method to specify the host URL.

public void connect()