From: AJ ONeal Date: Tue, 30 Jun 2020 07:02:13 +0000 (+0000) Subject: vps-myip for Windows powershell X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=8f7328f33a8570c016a3cada53d68f2024ad849f;p=webi-installers%2F.git vps-myip for Windows powershell --- diff --git a/vps-myip/install.ps1 b/vps-myip/install.ps1 new file mode 100644 index 0000000..81fb0ce --- /dev/null +++ b/vps-myip/install.ps1 @@ -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" +}