title: How to resolve - SocketException: Failed host lookup: 'server.com' (OS Error: nodename nor servname provided, or not known, errno = 8)
body: <p>I am pretty new to flutter development. I am getting the following error on connecting to the server:</p>
  <blockquote>
  <p>SocketException: Failed host lookup: 'server.com' (OS Error: nodename nor servname provided, or not known, errno = 8)</p>
  </blockquote>
  <p>I already referred the below link, but this was of no help for me</p>
  <p><a href="https://stackoverflow.com/questions/54551198/how-to-solve-socketexception-failed-host-lookup-www-xyz-com-os-error-no-ad">How to solve SocketException: Failed host lookup: &#39;www.xyz.com&#39; (OS Error: No address associated with hostname, errno = 7)</a></p>
  <p>Currently I am testing my application on iOS simulator. Below are the versions I am using,</p>
  <ul>
  <li>Http version - http: ^0.12.2</li>
  <li>Flutter version - 1.22.4(Stable version)</li>
  </ul>
  <p>The server is connecting when I am using mobile hotspot with my company's VPN enabled. But, I get this error when I switch to the company LAN.</p>
  <p>All the APIs are working fine in postman when connected to LAN. I am using Android Studio. Is there any specific configuration to be made in flutter? Please let me know...</p>