mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
14 lines
277 B
PowerShell
14 lines
277 B
PowerShell
#!/usr/bin/env pwsh
|
|
|
|
$ipv4 = curl.exe -sf https://api.ipify.org
|
|
|
|
IF (!($null -eq $ipv4 -or $ipv4 -eq "")) {
|
|
Write-Output "IPv4 (A) : $ipv4"
|
|
}
|
|
|
|
$ipv6 = curl.exe -sf https://api6.ipify.org
|
|
|
|
IF (!($null -eq $ipv6 -or $ipv6 -eq "")) {
|
|
Write-Output "IPv6 (AAAA): $ipv6"
|
|
}
|