Android how to get router manufacturer name programmatically
How can I get the manufacturer name of the router, for example "TP-link ...."? We can get a lot of information like IP address, mask, speed, etc., but I couldn't find the type of router.
Some apps can show this information, so I know it is possible :-).
Any help would be appreciated.
Many thanks.
source to share
You can use an online service like this to get the associated metadata stored on the MAC address.
http://www.macvendorlookup.com/api
Example:
http://www.macvendorlookup.com/api/v2/00-23-AB-7B-58-99
Which returns the following:
[
{
"startHex":"0023AB000000",
"endHex":"0023ABFFFFFF",
"startDec":"153192759296",
"endDec":"153209536511",
"company":"CISCO SYSTEMS, INC.",
"addressL1":"170 W. TASMAN DRIVE",
"addressL2":"M\/S SJA-2",
"addressL3":"SAN JOSE CA 95134-1706",
"country":"UNITED STATES",
"type":"oui24"
}
]
source to share
For manufacturer name only, you can also use below service.
http://api.macvendors.com/MAC_Address .
For the url it will look like
http://api.macvendors.com/00:23:AB:7B:58:99
You can get the answer in string format. An example for the above service response would be like this:
Cisco Systems, Inc
source to share