NetWiki

I can make net work

User Tools

Site Tools


leftovers:find_my_public_ip

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
leftovers:find_my_public_ip [2023-08-26 03:37] – [Dig] daveleftovers:find_my_public_ip [2023-11-03 20:02] (current) – [PowerShell] dave
Line 52: Line 52:
 <code> <code>
   (iwr 'http://icanhazip.com/').Content   (iwr 'http://icanhazip.com/').Content
 +</code>
 +
 +Invoke-WebRequest is also aliased as curl so this is another way to get the same result.
 +
 +<code>
 +curl icanhazip.com | Select-Object -ExpandProperty Content
 </code> </code>
  
leftovers/find_my_public_ip.txt · Last modified: 2023-11-03 20:02 by dave

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki