Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get Public IP Address using Powershell
$url = "https://www.icanhazip.com/"
$webclient = New-Object System.Net.WebClient
$ipResp = $webclient.DownloadString($url)
$ip = $ipResp.ToString().Trim()
Write-Output $ip
@aaronhoffman

This comment has been minimized.

Copy link
Owner Author

@aaronhoffman aaronhoffman commented Sep 26, 2016

Use this to automatically update SQL Azure firewall rules: http://aaron-hoffman.blogspot.com/2016/02/update-azure-sql-firewall-rule-using.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.