Licence server connection
What happens when an ADscan PRO machine cannot reach the licence server, how long it keeps working, and how to find and fix what blocks the connection.
Every online PRO licence (trial, partner and paid) checks in with the ADscan licence server when a scan starts, and registers each Active Directory domain it assesses. When the server cannot be reached nothing stops at once. ADscan tells you on that same launch, says how long you have, and keeps saying it on every launch until the connection works again.
The two clocks
Two dates matter while the server is out of reach. Neither one runs while the server answers.
| Clock | Counts from | What happens when it runs out |
|---|---|---|
| This machine | The licence document it holds, which every launch that reaches ADscan refreshes on its own | New assessments stop on this machine. Workspaces and reports stay, and adscan deliver still renders them. |
| Each new domain | That domain's own first scan. Every licence gives 7 days unless your agreement says otherwise. | A new assessment of that domain stops until it is registered. Domains already registered are not affected, ever. |
A worked example. A partner machine last reached ADscan on 10 November, and the licence document it holds lets it start new assessments without the server until 7 December. On 11 November the network team changes a firewall rule and the machine loses its route. That afternoon it assesses a new forest. The forest can be assessed until 18 November, seven days from its first scan. A forest registered in October keeps working until 7 December. The forest from 11 November stops a week earlier, because it was never registered.
Both dates come from your own licence, and every surface below shows the same ones.
The launch notice
The first launch that cannot reach the server prints this, and so does every launch after it until one gets through. The colour grows louder as the nearest date approaches. It never blocks a scan.
╭─ Licence server not reached ─────────────────────────────────────────────────╮
│ ADscan could not reach the licence server at this launch (timed out). │
│ The last successful contact was on 10 Nov 2026 at 08:12 UTC. │
│ │
│ Without it, new assessments can start on this machine until 7 Dec 2026 (25 │
│ days left). │
│ │
│ Domains waiting to be registered, and the last day each can be assessed │
│ dc1-k3v9qa-7pd2mx-tz4hnb-q8wcre until 18 Nov 2026 (5 days left) │
│ dc1-a7fd2m-q3vz8x-mnp4ce-r6tw0h until 20 Nov 2026 (7 days left) │
│ Domains already registered are not affected. │
│ │
│ Run `adscan license check` to see what blocks the connection and send what │
│ is waiting. On a network with no route to ADscan, use `adscan license │
│ relay export`. │
│ Need help? Write to hello@adscanpro.com. │
╰──────────────────────────────────────────────────────────────────────────────╯The dc1-… values are domain codes, the one-way codes ADscan sends instead of domain names. adscan license status shows the same dates and lists every waiting domain. adscan ci and other unattended runs print the same lines without the box.
adscan license check
adscan license check # what blocks the connection, then send what is waiting
adscan license check --json # the same for a script (versioned)It tests the route one step at a time and stops at the first that fails, then says what to do. When the server answers it also does what adscan license sync and adscan license renew do, so the waiting domains are registered and the licence document is refreshed in the same command. It exits with 0 when the licence server answered and 1 when it did not.
| Step | It tests | If it fails |
|---|---|---|
| Proxy | Which proxy carries the connection, from ADSCAN_LICENSE_PROXY or HTTPS_PROXY | A proxy that will not open the tunnel answers with a status. 407 means it wants credentials in the proxy URL. |
| DNS | The licence server's name resolves | Check the DNS server this machine uses, or ask for the licence host to be allowed through your DNS filtering. |
| Connection | TCP port 443 on the licence server opens | Allow outbound HTTPS from this machine to the licence host on TCP 443. |
| TLS | The server's certificate verifies | See the two TLS causes below. |
| Server | The licence server answers its health check | Something else answered for the licence host, such as a proxy page or a captive portal. |
| Clock | This machine's clock against the server's | See the clock below. |
TLS inspection
When the certificate this machine receives was not issued for the licence host, a TLS inspection device is replacing it, and check names who issued the one it saw. Exempt the licence host from inspection. ADscan trusts only its own certificate chain, so installing the inspection certificate on the machine does not help.
The clock
ADscan moves this machine's clock to a domain controller's time during a scan, because Kerberos needs the two to agree. The clock goes back when the scan ends. A scan stopped abruptly can leave it moved, and then two things break. The licence server refuses a request dated more than a day ahead of its own clock. TLS reads the server's certificate as expired or not yet valid when the clock is far enough out. check measures the difference with the server, says when ADscan is still holding the clock at a domain controller's time, and tells you how to turn time sync back on (sudo timedatectl set-ntp true on Linux, w32tm /resync on Windows). A domain registration the server refused only because of its date is sent again by the next check once the clock is right.
A proxy
adscan license check runs on the host and uses HTTPS_PROXY when it is set. Scans run in a container that does not inherit it, so when your network reaches the internet only through a proxy, also set ADSCAN_LICENSE_PROXY to the same URL. That proxy carries the licence check-in and domain registration and nothing else.
--offline
--offline turns off telemetry, online password lookups and downloads. It does not turn off the licence check-in of an online licence, so it is never the reason a launch cannot reach the licence server.
A network with no route to ADscan
Use the file relay. adscan license relay export --out requests.json writes everything waiting to one file, your platform or any machine with a route posts it to the licence server, and adscan license relay import --in answers.json loads the answer. When nothing at all may leave the client network, ask us for an offline engagement licence.
A licence that ended or was revoked, and a seat in use
These are not connection problems, so check reports the server as reachable. adscan license status says what happened. An ended contract is extended by ADscan and reaches the machine at its next launch. A revoked licence, or a seat already in use on another machine, needs a word with us. A seat moves to a new machine after adscan license deactivate on the old one.
For a platform that runs adscan ci
A platform that never reads the terminal gets the same facts as data.
- Per run. A run under an online PRO licence writes one
licence_noticeevent at launch to its event stream (ADSCAN_EVENTS_FILE, orADSCAN_EVENT_SINK=stderr-json) when the licence server was not reached, a domain is waiting to be registered, or the contract end is near. Nothing is written when the server answered and nothing is waiting or ending. - On demand.
adscan license status --jsonandadscan license check --jsoncarry the samelicence_noticeblock.
| Field | Meaning |
|---|---|
level | none, note, warning, urgent or critical, louder as the nearest date approaches |
server_reached | Whether the licence server answered the latest check-in |
check_in_result | current, refreshed, notice, revoked, rejected or unreachable |
last_contact | The last time the server answered this machine |
unreachable_since | The first failed check-in of the current run of failures |
works_offline_until, offline_days_left | The last day new assessments can start on this machine without the server |
contract_ends_on, contract_days_left | The end of your contract |
registered_domains | How many domain codes are registered |
pending_domains | Each waiting domain code with first_seen, assessment_allowed_until and days_left |
A licence notice never changes the exit code. A run that completes while the server is out of reach, inside both clocks, exits 0 and carries the notice. 78 is the only exit code the licence produces, and only for a refusal (no activated licence, a licence that ended or was revoked, a machine past its offline date, a new domain past its grace), with license_refusal.json beside the run saying why.
Who to contact
Write to hello@adscanpro.com with the output of adscan license check. It holds no client data.