Powershell, 64 26 23 bytes
Saved 38 bytes, thanks to Shawn Esterman
Saved 3 bytes, and repaired script, thanks to briantist
Test-Connection -q g.gl Saved 38 bytes, thanks to Shawn Esterman
Saved 3 bytes, and repaired script, thanks to briantist
Test-Connection -q g.gl