title: How to get Ip address in swift
body: <p>How do i get my local IpAddress?</p>
  
  <p>I tried to use this <code>Obj C</code> example: <a href="https://stackoverflow.com/questions/6807788/how-to-get-ip-address-of-iphone-programatically">how to get ip address of iphone programmatically</a></p>
  
  <p>When i get to the function <code>getifaddrs()</code> i can't get any further. i can't use the function.</p>
  
  <p>Is there an alternative way to do this, or am I approaching this the wrong way?</p>