check host and port if we're not using $json_conf