# NetworkInterface

<https://github.com/kyorohiro/hello_skyengine/tree/master/dartio_networkinterface>

* \[ERROR]

  <https://github.com/flutter/engine/issues/1655>

![](/files/-M23mPAOtPik6xeJh84U)

```
// following code is checked in 2016/01/13
import 'package:flutter/widgets.dart';
import 'dart:io';
import 'dart:convert';
import 'dart:async';

main() async {
  try {
    //
    // 2015/10/16
    //
    // begining of crash
    Text t = new Text("${await getNetworkInterface()}");
    Center c = new Center(child: t);
    runApp(c);
  } catch (e) {
    print(e);
  }
}

Future<String> getNetworkInterface() async {
  List<NetworkInterface> interfaces = await NetworkInterface.list(
      includeLoopback: true, includeLinkLocal: true);
  StringBuffer buffer = new StringBuffer();
  for (NetworkInterface i in interfaces) {
    buffer.write("${i.addresses} ${i.name}");
  }
  return buffer.toString();
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://flutter2015.firefirestyle.net/dartio/doc-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
