title: Flutter Http error SocketException: OS Error: Connection refused
body: <p>I'm using the last flutter version on a fresh created project. 
  I'm trying to call this URL <code>https://jsonplaceholder.typicode.com/users</code></p>
  
  <p>But on iOS or Android I get <code>flutter: Error SocketException: OS Error: Connection refused, errno = 61, address = jsonplaceholder.typicode.com, port = 52988</code></p>
  
  <p>Here is my network call:</p>
  
  <pre><code>import 'dart:async';
  import 'dart:convert';
  import 'dart:io';
  
  import 'package:test_flutter/constants.dart';
  import 'package:test_flutter/users/models/user.dart';
  
  class UserNetworkDatasource {
    Future&lt;List&lt;User&gt;&gt; retrieve() async {
      var httpClient = HttpClient();
      var uri = new Uri.https(baseUrl, '/users');
      var request = await httpClient.getUrl(uri);
      var response = await request.close();
      var responseJson = await response.transform(utf8.decoder).join();
      List userMap = json.decode(responseJson);
  
      return userMap.map((jsonUser) =&gt; User.fromJson(jsonUser));
    }
  }
  </code></pre>
  
  <p>Is there anything to do more than this ?
  I check the Android manifest and it has the Internet permission so should be ok </p>
  
  <p>Flutter 0.3.2 • channel beta</p>
  
  <p>Framework • revision 44b7e7d3f4 (4 weeks ago) • 2018-04-20 01:02:44 -0700</p>
  
  <p>Engine • revision 09d05a3891</p>
  
  <p>Tools • Dart 2.0.0-dev.48.0.flutter-fe606f890b</p>