title: Dart, a super simple http server
body: <p>I'm trying to just get a console app to fire up as a web server so if I browse to locahost:3000 in a browser I should see a blank page with HELLO WORLD! written on it, but with the following all I get is a repeated message in the console panel 'AcceptEx failed: 10022': </p>
  
  <pre><code>import 'dart:io';
  
  void main() {
  
    HttpServer.bind(InternetAddress.ANY_IP_V4, 3000).then((server){
      server.listen((HttpRequest request) {
        request.response.write('''
          &lt;html&gt;
            &lt;head&gt;
            &lt;/head&gt;
            &lt;body&gt;
              &lt;div&gt;
                HELLO WORLD!
              &lt;/div&gt;
            &lt;/body&gt;
          &lt;/html&gt;
        ''');
      });
    });
  
  }
  </code></pre>
  
  <p>Update:</p>
  
  <p>I was setting it to ANY_IP_V6 which was wrong my system doesnt have that, setting it to ANY_IP_V4 does seem to help along the issue, but now it just ends up getting to a point where it complains of a null reference exception <code>Breaking on exception: The null object does not have a method 'cancel'.</code> from noSuchMethod in class Object.</p>