title: Allow IP addresses in Network Policy Flutter Android
body: <p>After the recent changes Landed in version: 1.23 now Insecure HTTP connections are disabled by default on iOS and Android.</p>
  <p>After adding this snippet in Manifest.xml</p>
  <pre><code>&lt;application ...&gt;
   ...
  &lt;meta-data android:name=&quot;io.flutter.network-policy&quot;
           android:resource=&quot;@xml/network_security_config&quot;/&gt;
  &lt;/application&gt;
  </code></pre>
  <p>This is my network_security_config.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;network-security-config&gt;
  &lt;domain-config cleartextTrafficPermitted=&quot;true&quot;&gt;
      &lt;domain includeSubdomains=&quot;true&quot;&gt;15.535.243.8&lt;/domain&gt;
  &lt;/domain-config&gt;
  &lt;/network-security-config&gt;
  </code></pre>
  <p>After this, if I run my Android app I still get an exception.</p>
  <pre><code> [ERROR:flutter/shell/common/shell.cc(210)] Dart Unhandled Exception: Invalid argument (domain): Invalid domain name: &quot;15.535.243.8&quot;, stack trace: #0      new _DomainNetworkPolicy (dart:io/network_policy.dart:85:7)
   E/flutter (12820): #1      _constructDomainPolicies (dart:io/network_policy.dart:181:22)
   E/flutter (12820): #2      _EmbedderConfig._setDomainPolicies (dart:io/embedder_config.dart:44:23)
   E/flutter (12820): 
   F/flutter (12820): [FATAL:flutter/lib/io/dart_io.cc(38)] Check failed: !LogIfError(set_domain_network_policy_result). 
   E/flutter (12820): [ERROR:flutter/shell/common/shell.cc(210)] Dart Unhandled Exception: Invalid argument (domain): Invalid domain name: &quot;15.535.243.8&quot;, stack trace: #0      new _DomainNetworkPolicy (dart:io/network_policy.dart:85:7)
   E/flutter (12820): #1      _constructDomainPolicies (dart:io/network_policy.dart:181:22)
   E/flutter (12820): #2      _EmbedderConfig._setDomainPolicies  (dart:io/embedder_config.dart:44:23)
   E/flutter (12820): 
   F/flutter (12820): [FATAL:flutter/lib/io/dart_io.cc(38)] Check failed: !LogIfError(set_domain_network_policy_result). 
   F/OIC_SRM_DOXM(20621): UpdatePersistentStorage failed!
   F/OIC_SRM_DOXM(28806): UpdatePersistentStorage failed!
  </code></pre>