A Flutter plugin for discovers devices on local network. It return IP v4 address, Mac Address,Interface Vendor and host name.
- Plugin only support Android SDK Version 29 and below
- The hostname resolve only work in 2.4G Wifi, otherwise return null
To use this plugin, add arp_scanner as a dependency in your pubspec.yaml file.
Change compileSdkVersion of build.gradle build script to 29.
android {
....
compileSdkVersion 29
....
}
Change kotlin version of build.gradle build script to 1.5.30 or newer.
buildscript {
...
ext.kotlin_version = '1.5.30'
...
}
The example You can find here.
Clone repo to local. Then
go mod tidy
go run createMacVendorDB.go
Add local repo as your project dependency after Mac vendor database is updated.
android {
configurations {
all {
exclude module:'gson'
}
}
}