mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-03 18:00:18 +00:00
vps-myip for Windows powershell
This commit is contained in:
11
vps-myip/install.ps1
Normal file
11
vps-myip/install.ps1
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user