DirectAccess is a Microsoft remote access technology that gives domain-joined Windows computers an automatic, always-on connection to the corporate network whenever they have internet access, without the user starting a VPN. In Windows networking, it was introduced with Windows 7 and Windows Server 2008 R2 and is built on IPsec tunnels over IPv6, carried across IPv4 networks by transition technologies.
DirectAccess is now a legacy technology. Microsoft recommends Always On VPN for new deployments, but many organizations still run DirectAccess on Windows Server, so administrators need to understand how it works, how to troubleshoot it and how to migrate away from it.
How DirectAccess connects a client to the intranet
A DirectAccess client decides whether it is inside or outside the corporate network by trying to reach the network location server, an internal HTTPS website. If the site answers, the client assumes it is on the intranet and does nothing. If it does not answer, the client activates DirectAccess and builds tunnels to the Remote Access server at the network edge.
The client uses two IPsec tunnels. The infrastructure tunnel is authenticated with the computer certificate or computer account and starts before any user logs on, so domain controllers, management servers and update services are reachable. The intranet tunnel adds user authentication and opens access to the remaining internal resources.
Name resolution relies on the Name Resolution Policy Table, or NRPT, delivered by Group Policy. The NRPT tells the client to send queries for internal namespaces, such as corp.example.com, to internal DNS servers through the tunnel, while all other queries go to the public DNS server of the local network.
| Component | Location | Role |
|---|---|---|
| Remote Access server | Network edge or behind a NAT device | Terminates IPsec tunnels and translates traffic |
| Network location server | Internal network only | Lets clients detect that they are inside |
| NRPT | Client, via Group Policy | Routes internal DNS queries through the tunnel |
| DNS64 and NAT64 | Remote Access server | Give IPv6 clients access to IPv4-only resources |
| Public key infrastructure | Internal certificate authority | Issues computer and IP-HTTPS certificates |
IPv6 transition technologies in DirectAccess
DirectAccess carries all client traffic as IPv6, yet most home and hotel networks offer only IPv4. The client therefore wraps IPv6 packets in one of three transition technologies, chosen automatically in order of preference. When none of them can be used, the connection fails.
| Technology | When it is used | Practical note |
|---|---|---|
| 6to4 | Client has a public IPv4 address | Rare today and often blocked by providers |
| Teredo | Client is behind NAT, UDP 3544 allowed | Requires two consecutive public IPv4 addresses on the server |
| IP-HTTPS | All other cases, over TCP 443 | Most reliable through firewalls and proxies |
| Native IPv6 | Client and server both have IPv6 | No encapsulation overhead |
IP-HTTPS became the dominant method because it passes almost any firewall. Older Windows versions encrypted traffic twice, once with IPsec and once with TLS, which cost performance. Windows 8 and later use null encryption for TLS inside IP-HTTPS, which significantly reduces the overhead.
Requirements and limitations of DirectAccess
DirectAccess works only with domain-joined clients running Enterprise or Education editions of Windows. Windows Pro and Home editions cannot act as DirectAccess clients, and devices that are joined only to Microsoft Entra ID are not supported. The server role is the Remote Access role in Windows Server.
- No support for non-Windows clients: macOS, iOS, Android and Linux devices need a different remote access solution.
- Limited protocol support: some applications that embed IPv4 addresses in their payloads fail through NAT64.
- Complex troubleshooting: failures may lie in certificates, NRPT, IPsec policy or the transition layer.
- No active development: Microsoft keeps DirectAccess for compatibility but adds no new features.
A frequent outage is caused by an unreachable network location server. If the server fails while clients are inside the office, they wrongly assume they are outside, start DirectAccess and may lose access to internal names, so the network location server should be highly available.
DirectAccess compared with VPN alternatives
DirectAccess and Always On VPN both provide automatic remote connectivity, but they differ in protocol design, client support and management. Always On VPN uses standard VPN protocols such as IKEv2 and SSTP and supports device and user tunnels with similar behavior to DirectAccess.
| Feature | DirectAccess | Always On VPN | Traditional VPN |
|---|---|---|---|
| Connection start | Automatic, before logon | Automatic, device or user tunnel | Manual by the user |
| Client editions | Enterprise and Education only | Most Windows editions | Depends on vendor client |
| Network layer | IPv6 over IPsec | IPv4 and IPv6 | IPv4 and IPv6 |
| Management | Group Policy | Intune or configuration profiles | Vendor tools |
| Future status | Legacy, no new features | Recommended by Microsoft | Vendor dependent |
Operating and migrating DirectAccess
Administrators diagnose client state with PowerShell and netsh. The cmdlet Get-DAConnectionStatus reports whether the client is connected, and netsh namespace show effectivepolicy displays the active NRPT rules. The Remote Access Management console on the server shows operations status and connected clients.
| Symptom | Likely cause | Typical fix |
|---|---|---|
| Clients inside the office lose internal names | Network location server down | Restore or cluster the server |
| IP-HTTPS shows error 0x2af9 | Certificate or name mismatch | Correct the IP-HTTPS certificate |
| Only the infrastructure tunnel connects | User authentication failure | Check user Kerberos and IPsec policy |
| Internal app works by IP but not by name | Missing NRPT entry | Add the namespace to the NRPT |
Migration to Always On VPN usually runs in parallel: the new VPN profiles are deployed to a pilot group, the pilot computers are removed from the DirectAccess security group, and the Remote Access server is retired once all clients have moved. Running both on the same client for a long time can cause routing and name resolution conflicts.
In plain words
DirectAccess lets a company laptop reach the office network from anywhere. The user does not click anything. The laptop notices it is outside the office and connects on its own.
It is like a private road that opens whenever the car leaves the company parking lot. It works only on business editions of Windows. It is older technology, and most companies now replace it with Always On VPN.
A real-world example
A regional engineering firm with 350 Windows laptops deployed DirectAccess years ago so that site engineers could open drawings from internal file servers while traveling. Laptops connect over IP-HTTPS on port 443 from hotels and client sites, and IT staff push updates and Group Policy changes even when nobody is logged on, because the infrastructure tunnel starts at boot.
When the firm introduced Microsoft Intune and several Windows Pro devices, DirectAccess could not cover them. IT ran a pilot of Always On VPN with 30 users, then moved the rest in four weekly waves. After eight weeks, the Remote Access server was decommissioned, and remote access worked on all devices, including those that DirectAccess had never supported.