projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c435c96
)
vps-myip for Windows powershell
author
AJ ONeal
<aj@therootcompany.com>
Tue, 30 Jun 2020 07:02:13 +0000
(07:02 +0000)
committer
AJ ONeal
<aj@therootcompany.com>
Tue, 30 Jun 2020 07:02:22 +0000
(07:02 +0000)
vps-myip/install.ps1
[new file with mode: 0644]
patch
|
blob
diff --git a/vps-myip/install.ps1
b/vps-myip/install.ps1
new file mode 100644
(file)
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"
+}