Socket
Socket
Sign inDemoInstall

node-red-contrib-ip

Package Overview
Dependencies
51
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-red-contrib-ip

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


Version published
Weekly downloads
166
increased by9.93%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 06 Jan 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc