6

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?

Giri
  • 277
  • 1
  • 2
  • 13

1 Answers1

2

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

Community
  • 1
  • 1
aditya
  • 343
  • 2
  • 14
  • 3
    Thanks! for the reply. I want to check whether it's connected to a network. There may be cases which the PC is connected to a network but won't have the internet. – Giri Oct 05 '14 at 05:04
  • In the first link you can see that there is a solution to ping. If the return from ping is a success you can be sure that you r connected to the internet. – aditya Oct 05 '14 at 05:08
  • 1
    I think there's some confusion regarding the question. I don't want to check whether the PC connected to the internet. Only to check it's connected to a wireless network. Turns out, the ManagedWifi can do this job. Thanks Aditya for the help! – Giri Oct 05 '14 at 05:48
  • o my bad i guess i jumped the gun too soon :) – aditya Oct 05 '14 at 05:54