Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check whether connected to a Wi-Fi network or not C#

Tags:

c#

.net

winforms

Is there any way to check whether the PC connected to a wifi network or not? Also, I want the SSID if it's connected. Possible?

like image 983
Giri Avatar asked Oct 31 '22 16:10

Giri


1 Answers

The part for checking internet connection is answered here:

C# checking Internet connection

The SSID part is answered here:

Get SSID of the wireless network I am connected to with C# .Net on Windows Vista

like image 59
aditya Avatar answered Nov 13 '22 05:11

aditya