detect networking connectivity