From 8f7328f33a8570c016a3cada53d68f2024ad849f Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 30 Jun 2020 07:02:13 +0000 Subject: [PATCH] vps-myip for Windows powershell --- vps-myip/install.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 vps-myip/install.ps1 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" +} -- 2.25.1