title: gethostbyname fails with error 111 (ECONNREFUSED)
body: <p>The device does have network connectivity (WiFi and 3G). </p>
  
  <p>Calling gethostbyname() returns NULL with errno 111 (ECONNREFUSED).</p>
  
  <p>The same call works fine on osx and windows.</p>
  
  <p>What could be the problem?</p>
  
  <p>Best,</p>