evoactivity / cordova-plugin-ip-mac-address

To fetch the ip and mac address of a device.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#This plugin is used to get the device IP Address and Mac Address

Install this plugin using

cordova plugin add cordova-plugin-ip-mac-address

function call to get the IP Address

var params = {};
addressimpl.request("getIPAddress", JSON.stringify(params), function(message) {
    	alert("ip address "+message);
    }, function() {
    	alert("failed on get ip address");
    });

function call to get the Mac Address

var params = {};
addressimpl.request("getMACAddress", JSON.stringify(params), function(message) {
    	alert("mac address "+message);
    }, function() {
    	alert("failed on get mac address");
    });

About

To fetch the ip and mac address of a device.


Languages

Language:Objective-C 78.4%Language:Java 20.6%Language:JavaScript 1.1%