vps-myip for Windows powershell

This commit is contained in:
AJ ONeal
2020-06-30 07:02:13 +00:00
parent c435c96dc9
commit 8f7328f33a

11
vps-myip/install.ps1 Normal file
View File

@@ -0,0 +1,11 @@
$ipv4 = curl.exe -sf https://api.ipify.org
IF(!($ipv4 -eq $null -or $ipv4 -eq "")) {
echo "IPv4 (A) : $ipv4"
}
$ipv6 = curl.exe -sf https://api6.ipify.org
IF(!($ipv6 -eq $null -or $ipv6 -eq "")) {
echo "IPv6 (AAAA): $ipv6"
}