I have searched so many places but found no reasonable answer to my application requirement. i am developing C# WinForm application in visual Studio.
Q. On application start it should check if computer has internet connection or not, if there in internet connection it automatically disable it but keeping localarea network alive?
i have tried many codes but they just disables whole modem and localarea network goes offline, this way application is unable to access SQL Server database.
Q. If there is anyway to keep connection in local network and turn off internet while application in use, once application exits internet connection comes back on.