I have a computer with a few different internet connections. LAN, WLAN, WiFi or 3G. All of these are active and the machine can use any of them.
Now I want to tell my application to use one of the available connections. For example I want to tell my application to use only WiFi while other software might use something else.
And before telling application we select a internet and want to check that selected internet is working fine or not. So how we can check selected internet is connected.