node-red-contrib-ip 1.0.1

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

npm install node-red-contrib-ip

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: 1.0.1
Updated 5 years ago
License: MIT
Rating: 5.0 2

Categories

Actions

Rate:

Downloads

133 in the last week

Nodes

  • ip

Keywords

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

Maintainers