projects
/
webi-installers
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
vps-myip for Windows powershell
[webi-installers/.git]
/
vps-myip
/
install.ps1
1
$ipv4 = curl.exe -sf https://api.ipify.org
2
3
IF(!($ipv4 -eq $null -or $ipv4 -eq "")) {
4
echo "IPv4 (A) : $ipv4"
5
}
6
7
$ipv6 = curl.exe -sf https://api6.ipify.org
8
9
IF(!($ipv6 -eq $null -or $ipv6 -eq "")) {
10
echo "IPv6 (AAAA): $ipv6"
11
}