简体   繁体   中英

How to check if the Windows 10 device is connected to a public or private WiFi?

I need to detect if my Windows 10 application is running on a public or private WIFI network. I need to warn the user that he/she is connected to a public network and the connection is susceptible to snooping etc.

On a Windows 10 machine, you can see the WiFi connection type by Settings -> Network and Internet -> Change connection properties. enter image description here

Please specify what language the application is written in. If it is in C# you could probably use the NetworkInformationPermissionAttribute Class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM