Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
&{
try {
$tmp = [Net.Sockets.TcpClient]::new('google.com', 443)
$tmp.Connected
$tmp.close()
return
}
catch [System.Net.Sockets.SocketException] {
$Error[0].Exception | Out-Host
}
$False
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment