Check if internet connection is present

Is the following call to the System.Net API sufficient to be sure that there is or is not an active connection to the internet

System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()

Or is there additionall work (e.g. look for active RAS connections) to be done

Thanks,

Neno




Answer this question

Check if internet connection is present

  • Sarwanan

    No it is not sufficient.

    What it tells you is that the network is available.It could be a simple and closed
    subnet where there are no external connections. So it means that you are "connected" not "connected to internet"



  • JBrophy

    Thanks, that's definetly true. I was more interested in what other ways exist to connect to the internet that are not aquired by this method

    -Neno



  • Check if internet connection is present