In this article:
- Twingate Component: Client
- Platform: Windows 10, Windows 11
Windows leverages Network Connectivity Status Indicator (NCSI) to examine network connectivity by attempting to connect to a handful of Microsoft-hosted IPv6/AAAA and IPv6/A endpoints. If native IPv6 is present, Windows will default to preferring IPv6 over IPv4, and if resolving the designated Microsoft AAAA DNS endpoints fails, NCSI indicates no Internet access (even if resolving the A DNS record succeeds).
The Twingate Windows Client does not currently provide native support for IPv6. As such, in certain environments where the ISP provides IPv6 connectivity, NCSI might return the Internet as being down as it doesn’t check for both IPv6 and IPv4 connectivity. This is usually reported in the OS to the user via notification, and some applications (like Outlook) make a prerequisite check with the NCSI API prior to attempting a connection.
- When the Windows Client is connected, both Twingate and the network adapter are reported to have
No Internet accessin the Windows Notification Tray.
- Windows applications which utilize the NCSI API such as the Office 365 Suite (Outlook) return an error that no internet access is available.
- Internet use outside of such applications works as expected.
- When the Windows Client is disconnected the
No Internet accesserror goes away.
To alleviate the
No Internet access notifications and Windows applications leveraging NCSI failing to load, IPv4 can be set to be preferred over IPv6. Microsoft explicitly advises to not disable IPv6 or NCSI.
⚠️ Note: in order to run this script you must run PowerShell as an Administrator.
Press WindowsKey+R on your keyboard to open Run.
Type powershell and press Ctrl+Shift+Enter on your keyboard to open PowerShell as an Administrator.
Accept the UAC prompt to continue as applicable.
Copy the below command and paste it into the PowerShell terminal.
$preferIPv4 = Invoke-WebRequest https://raw.githubusercontent.com/Twingate-Labs/tg-scripts/main/Client/Windows/preferIPv4.ps1; Invoke-Expression $($preferIPv4.Content)
Press enter on your keyboard to issue the command.
You should either have a response of the below. If any errors are returned beyond an error to run as administrator, please engage Twingate Support as needed.
IPv4 is already preferred over IPv6. No further actions necessary.
Setting IPv4 preference over IPv6. Reboot required for changes to take effect.
After rebooting (if prompted), confirm the symptoms are resolved.
- Microsoft Documentation Article: NCSI Active Probes and the Network Status Alert.
- Further information regarding the IPv4/IPv6 registry key used in this article can be found at Microsoft Documentation Article: Guidance for configuring IPv6 in Windows for advanced users.
- For domain or fleet wide deployments, Group Policy can be used to set the applicable registry key. Various instructions for this can be found online.