title: Getting Foundation.NSErrorException: Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." on Xamarin Forms iOS
body: <p>I am trying to connect to local Wifi connection on my iOS device, but whenever I am trying to execute below code it's giving exception:</p>
  
  <pre><code>var response = await client.GetAsync("https://myIP/value?" + requestData).
  </code></pre>
  
  <p>Exception:</p>
  
  <blockquote>
    <p>Foundation.NSErrorException: Error Domain=NSURLErrorDomain Code=-1009
    "The Internet connection appears to be offline."</p>
  </blockquote>
  
  <p>This works fine if my Mobile Data is ON, but as soon as I turn off my mobile data and connect to my local WiFI(without internet) this error starts appearing.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>As per the suggestion below, I tried to find out cellular option but I think it's not available in iOS 13.</p>
  
  <p><a href="https://i.stack.imgur.com/d1BZ4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d1BZ4.png" alt="enter image description here"></a></p>