Updated so that a useful port is assumed for https connections by default.