node-red-contrib-ip

    1.0.2 • Public • Published

    node-red-contrib-ip

    This simple node returns the internal or public IP address of the Node-red host.

    install

    From your node-red directory:

    $ npm install node-red-contrib-ip
    

    or

    in the Node-red, Manage palette, Install node-red-contrib-ip

    Usage

    Possible options:

    Internal:

    • 'IPv4'
    • 'IPv6'

    Public:

    • 'IPv4'
    • 'IPv6'
    • 'Https' - more secure but slower metod, which using the icanhazip.com service.
    • 'Timeout' - time in milliseconds until the request is considered to be exceeded.

    Any positive msg. sent to the node input will generate msg.payload on the output. The msg.payload will contain only ip addresses set in the node configuration.

    Example of output message (msg.payload):

    • 'internalIPv4' : 192.168.200.62
    • 'internalIPv6' : fe80::64ef:a771:73e4:d1e1%11
    • 'publicIPv4' : 216.58.216.164
    • 'publicIPv6' : 2607:f8b0:400a:807::2004

    License

    MIT License

    Install

    npm i node-red-contrib-ip

    DownloadsWeekly Downloads

    134

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    10.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • okhiroyuki