View Single Post
Posts: 118 | Thanked: 26 times | Joined on Feb 2008
#6
netstat -rn | grep '0\.0\.0\.0'

should work too. Basically, it checks the kernel's routing tables to see if there's a default gateway set. Without a default gateway, you can't connect to any systems outside your local ethernet segment, hence no connection. This is indifferent to the kind of connection you use - BT, WLAN or whatever.

Martin
 

The Following User Says Thank You to m_stolle For This Useful Post: