Allow the connection to be specified on the commandline

Signed-off-by: David Scott <dave.scott@eu.citrix.com>