checknetwork script.