title: Nativescript accessing localhost access in android and ios
body: <p>I have a local node rest api running on my system. </p>
  
  <p>My question is ,when accessing localhost from android we are supposed to use 10.0.2.2. And When using ios we can use localhost . </p>
  
  <p>So is there a way we can control the host name we call , depending on the environment ios or android in a nativescript app</p>