Sorry for being unclear, the GPRS connection (modem) freezes sometimes (I have to switch it off and back on to make it working again) but dial-up connection in Windows remains in connected state, so checking for status of DUN connection doesn’t assure that Internet is really accessible. In this situation I consider the pinging method more reliable.