Certain VPNs cause MAUI to respond with connectivity of NetworkAccess.Local
#22,228 opened on May 6, 2024
Description
Description
When building a Windows MAUI app, the NetworkAccess will sometimes return Local for laptop connected via Wifi with Tailscale installed and the Tailscale interface shows up before the wifi Interface in the Control Panel Network Connections screen. I think that the logic may be picking the first connection when you may have more than one connection which is unexpected as Windows itself reports you have internet access but the app thinks you don't.
Steps to Reproduce
It might take a bit of trial and error to reproduce. I was able to disable Tailscale which then returned NetworkAccess.Internet to the app. Now the Tailscale interface is 4th in the list.
Link to public reproduction project repository
No response
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows SDK
Did you find any workaround?
Disabling the VPN interface helps.
Relevant log output
?Windows.Networking.Connectivity.NetworkInformation.GetInternetConnectionProfile()
{Windows.Networking.Connectivity.ConnectionProfile}
CanDelete: false
IsWlanConnectionProfile: false
IsWwanConnectionProfile: false
NetworkAdapter: {Windows.Networking.Connectivity.NetworkAdapter}
NetworkSecuritySettings: {Windows.Networking.Connectivity.NetworkSecuritySettings}
ProfileName: "Tailscale"
ServiceProviderGuid: null
WlanConnectionProfileDetails: null
WwanConnectionProfileDetails: null