Repository: flutter
Issue: InternetAddress.reverse does not work on android
Labels: platform-android,platform-ios,engine,platform-mac,dependency: dart,has reproducible steps,P2,dependency: dart:io,found in release: 3.0,found in release: 3.1,team-engine,triaged-engine

Running `InternetAddress.reverse` on **a local IP** works in dart native but does not work inside a flutter android app.
It is important to mention that the same code does work on flutter Linux.



## Steps to Reproduce
1. Find at least one pingable device in your **local network** that contains a hostname.
   You can use [Network Scanner](https://play.google.com/store/apps/details?id=com.myprog.netscan) app for that.
2. Create flutter app and paste the following code:
```dart
final InternetAddress? internetAddressTemp =
    InternetAddress.tryParse('local_IP_with_host_name');
InternetAddress internetAddress = await internetAddressTemp!.reverse();
print(internetAddress.host);
```
4. Replace `local_IP_with_host_name` with the device IP that you have found.
5. Run the flutter app on an Android device

**Expected results:**
Hostname of the device will be printed (because it is exists for that IP)

**Actual results:** 
There is an error in the console.

<details>

```
E/flutter ( 2090): [ERROR:flutter/runtime/dart_isolate.cc(1098)] Unhandled exception:
E/flutter ( 2090): SocketException: Failed reverse host lookup (OS Error: hostname nor servname provided, or not known, errno = 8), address = 192.168.1.66
E/flutter ( 2090): #0      _NativeSocket.reverseLookup.<anonymous closure> (dart:io-patch/socket_patch.dart:531:9)
```


<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel stable, 3.0.5, on Ubuntu 21.10 5.13.0-52-generic, locale en_IL)
    • Flutter version 3.0.5 at /home/zrho/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (4 weeks ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /home/zrho/Android/Sdk
    • Platform android-33, build-tools 31.0.0
    • Java binary at: /snap/android-studio/123/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    • cmake version 3.10.2
    • ninja version 1.8.2
    • pkg-config version 0.29.1

[✓] Android Studio (version 2021.2)
    • Android Studio at /snap/android-studio/123/android-studio
    • Flutter plugin version 69.0.2
    • Dart plugin version 212.5744
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code
    • VS Code at /snap/code/current
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Ubuntu 21.10 5.13.0-52-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 104.0.5112.79

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

```

</details>

I have opened that issue first in [dart-lang/sdk](https://github.com/dart-lang/sdk/issues/49608), as this only can be reproduced on flutter dart and not dart native (dart cli) I am opening it again here under flutter repo.