node-red-contrib-ip 0.0.5

This node provides the IP address (internal & public) of the machine hosting the Node-red.

npm install 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

Node Info

Version: 0.0.5
Updated 1 month, 1 week ago
License: MIT
Rating: 5.0
(1 )

Downloads

7 in the last day
39 in the last week
280 in the last month

Nodes

  • ip

Keywords

  • internal-ip
  • public-ip
  • node-red

Maintainers

  • okhiroyuki