checking if connected to a network, not wifi.