Synopsis: connect [host][:port]

Description: connects to the controller on the specified host and port.

Arguments:

 host - optional, default value is localhost;
 port - optional, default value is 9999.
 
The default values can be customized by specifying the desired defaults as command line
arguments when launching the CLI. E.g.
 
 jboss-admin.sh controller=controller-host.net:1234

Or

 jboss-admin.sh controller=controller-host.net
 
In this case, the default port will be 9999.

Note, specifying controller argument will only set the default host and port values
for the connect command but will not automatically connect to the specified controller.
 
To connect automatically after the launch, use '--connect' switch. E.g.
 
 jboss-admin.sh --connect
 jboss-admin.sh --connect controller=controller-host.net
 jboss-admin.sh --connect controller=controller-host.net:1234