refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / myip / myip.ps1
1 #!/usr/bin/env pwsh
2
3 $ipv4 = curl.exe -sf https://api.ipify.org
4
5 IF(!($ipv4 -eq $null -or $ipv4 -eq ""))
6 {
7     echo "IPv4 (A)   : $ipv4"
8 }
9
10 $ipv6 = curl.exe -sf https://api6.ipify.org
11
12 IF(!($ipv6 -eq $null -or $ipv6 -eq ""))
13 {
14     echo "IPv6 (AAAA): $ipv6"
15 }