title: NativeScript - Get device local IP address
body: <p>I'd like to get the local IP address of my device using NativeScript / JavaScript.</p>
  
  <p>I have done a search and found a way to do that on Android, but I'd like to have a cross-platform solution that works also on iOS.</p>
  
  <p>I'm currently using <a href="https://github.com/rtodea/NSPlayground" rel="nofollow noreferrer"><code>NSPlayground</code></a> on an iPhone 6S running <code>iOS 11.4</code>.</p>