{"id":22234744,"url":"https://github.com/tejmagar/androidwifitools","last_synced_at":"2025-08-13T18:11:24.258Z","repository":{"id":48985066,"uuid":"381930987","full_name":"tejmagar/AndroidWiFiTools","owner":"tejmagar","description":"Android library for finding connected devices on the same WiFi network. It can provide IP Addresses, device names, MAC Address and vendor names.","archived":false,"fork":false,"pushed_at":"2024-06-27T15:24:30.000Z","size":1625,"stargazers_count":26,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-25T18:01:24.205Z","etag":null,"topics":["android","ipaddress","macaddress","networking","tools","wifi"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tejmagar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-07-01T06:22:13.000Z","updated_at":"2025-05-08T21:59:24.000Z","dependencies_parsed_at":"2025-07-25T13:41:24.223Z","dependency_job_id":"5f2aec2c-9e8e-4bec-a366-4278d23168b5","html_url":"https://github.com/tejmagar/AndroidWiFiTools","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/tejmagar/AndroidWiFiTools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejmagar%2FAndroidWiFiTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejmagar%2FAndroidWiFiTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejmagar%2FAndroidWiFiTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejmagar%2FAndroidWiFiTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tejmagar","download_url":"https://codeload.github.com/tejmagar/AndroidWiFiTools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejmagar%2FAndroidWiFiTools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270287219,"owners_count":24558616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","ipaddress","macaddress","networking","tools","wifi"],"created_at":"2024-12-03T02:09:28.357Z","updated_at":"2025-08-13T18:11:24.240Z","avatar_url":"https://github.com/tejmagar.png","language":"Java","funding_links":["https://www.buymeacoffee.com/tejmagar"],"categories":[],"sub_categories":[],"readme":"# Android WiFi Tools\nAndroid library for finding connected devices on the same WiFi network. It can provide IP Addresses, device names, MAC Address and vendor names.\n\\\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/tejmagar)\n\n\u003cimg src=\"screenshot.png\" width=\"360\" height=\"780\"\u003e\n\n## Alternative [Use this instead]\nhttps://github.com/tejmagar/AndroidNetworkTools use this instead.\n\n## Usage\nAdd the JitPack repository to your build file\nAdd it in your root build.gradle at the end of repositories:\n\n```gradle\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url 'https://jitpack.io' }\n\t}\n}\n```\n\n### Add the dependency\n\n```gradle\ndependencies {\n    implementation 'com.github.tejmagar:AndroidWiFiTools:1.0.2'\n}\n```\n\n### Add Permission\n\n```xml\n\u003cuses-permission android:name=\"android.permission.INTERNET\"/\u003e\n```\n\n### Update build.gradle(:app) for Android 11\n```gradle\nandroid {\n    ...\n    defaultConfig {\n        ...\n        //noinspection OldTargetApi\n        targetSdkVersion 29\n        ...\n        }\n}\n```\n\n### Find Connected Devices\n```java\n DevicesFinder devicesFinder = new DevicesFinder(this, new OnDeviceFindListener() {\n            @Override\n            public void onStart() {\n\n            }\n\n            @Override\n            public void onDeviceFound(DeviceItem deviceItem) {\n                \n            }\n\n            @Override\n            public void onComplete(List\u003cDeviceItem\u003e deviceItems) {\n\n            }\n\n            @Override\n            public void onFailed(int errorCode) {\n\n            }\n        });\n        \ndevicesFinder.start();\n```\n\n### Set Timeout\nIncreasing timeout value may give you better results.\n\n```java\ndevicesFinder.setTimeout(5000).start();\n```\n\n### Get Mac Address from IP Address\n```java\nString macAddress = MacAddressInfo.getMacAddressFromIp(\"192.168.1.1\");\n```\nBefore running this code, make sure you have already run ```deviceFinder.start();``` method.\n\nReturns device Mac Address. If not found, it will return \"unknown\" or ```Constants.UNKOWN```\n\n### Get current device IP Address\n```java\nString ipAddress = devicesFinder.getCurrentDeviceIpAddress();\n// or\nString ipAddress = Utils.getCurrentDeviceIpAddress();\n```\n\n### Get current device Mac Address\n```java\nString currentDeviceIpAddress = devicesFinder.getCurrentDeviceIpAddress();\nString currentDeviceMacAddress = MacAddressInfo.getCurrentDeviceMacAddress(currentDeviceIpAddress);\n```\n\n### Get vendor name from Mac Address\n```java\nString vendorName = VendorInfo.getVendorName(\"94:17:00:3a:f9:09\");\n```\n\nreturns device Mac Address. If not found, it will return \"unknown\" or ```Constants.UNKNOWN```\n\n ```VendorInfo.init(context);``` will be automatically called while starting the device finder. If not, make sure you have initialized it first.\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftejmagar%2Fandroidwifitools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftejmagar%2Fandroidwifitools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftejmagar%2Fandroidwifitools/lists"}