Skip to content

Instantly share code, notes, and snippets.

@JonCanning
Created September 20, 2014 10:10
Show Gist options
  • Select an option

  • Save JonCanning/6ebe1cd0afb21c73b04b to your computer and use it in GitHub Desktop.

Select an option

Save JonCanning/6ebe1cd0afb21c73b04b to your computer and use it in GitHub Desktop.
Local IP Addresses
System.Net.Dns.GetHostName() |> System.Net.Dns.GetHostEntry |> fun x -> x.AddressList |> Seq.filter (fun x -> x.AddressFamily = System.Net.Sockets.AddressFamily.InterNetwork) |> Seq.map (fun x -> x.ToString())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment