Skip to content

Cordova (PhoneGap) plugin to fetch the router's IP address. Presently only for iOS, Android to follow.

License

Notifications You must be signed in to change notification settings

vallieres/cordova-plugin-get-router-ip-address

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-get-router-ip-address

Cordova (PhoneGap) plugin to fetch the router's IP address. Presently only for iOS and Android.

Instructions

Cordova 3.X (command line)

cordova plugin add https://github.com/vallieres/cordova-plugin-get-router-ip-address

Cordova 2.9 and earlier

Add *.h, *.m to your project and *.js to www/ directory.

Add node to config.xml:

<feature name="com.vallieres.plugin.getrouteripaddress">
    <param name="ios-package" value="CDVGetRouterIPAddress"/>
</feature>

Example

There is a simple example available, it should simple output the router IP address in the console and in the Device Ready flashing green message in the Simulator/Device.

Legal

cordova-plugin-get-router-ip-address is licensed with Apache License v2.0. (same as Cordova, for license see http://www.apache.org/licenses/LICENSE-2.0)

Copyright (c) 2015 Alexandre Vallières-Lagacé alexandre.valliereslagace@gmail.com.