title: ios simulator access localhost server
body: <p>I am trying to get rest data to ios app, and i use this code:</p>
  
  <pre><code>    var rest_url = "http://192.168.0.1:8000/rest/users/"
  
      let url: NSURL = NSURL(string: rest_url)
      let session = NSURLSession.sharedSession()
      let task = session.dataTaskWithURL(url, completionHandler: {data, response, error -&gt; Void in
      if(error != nil) {
          println(error.localizedDescription)
      }
      println(data)
      var err: NSError?
  
      var jsonResult = NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.MutableContainers, error: &amp;err) as NSDictionary!
  </code></pre>
  
  <p>But i think that i can't access my server like this, anyone know how can i access my server from ios simulator?</p>