I'm working on a mobile app using Flutter and want to scan the local network for connected devices. I found the ping_discover_network package, which is working fine, but only gets me the IP address, but I also want to show the hostname of the device.
I tried the reverse() method of the InternetAddress class from the dart:io package, but this only gets me the IP address back. Example:
InternetAddress(ip).reverse().then((value) => print(value));
Is there another package or something I can use, to scan the local network of the app and get the IP address and the hostname back?