9951 explained code solutions for 126 technologies


powershellHow to retrieve your internet's public facing IP address in powershell


(Invoke-WebRequest -Uri "http://checkip.dyndns.com").Content -replace "[a-z]|[A-Z]","" -replace "(<>)|(</>)|(:)",""ctrl + c
(Invoke-WebRequest -Uri "http://checkip.dyndns.com")

send an HTTP GET request for domain url checkip.dyndns.com to retrieve data

.Content -replace "[a-z]|[A-Z]","" -replace "(<>)|(</>)|(:)",""

clean the data from the content property on the web response and replace all html style tags besides the IP number