setHostURL (String)

Method. Sets the host URL for the current session, including the transport, host name, and port. If you use this method to change the host URL after a connection has already been established, the new value does not take effect until you disconnect then reconnect.

public void setHostURL(String hostURL) throws MalformedURLException