Socket
Book a DemoInstallSign in
Socket

node-red-contrib-ip

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

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.

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
104
-9.57%
Maintainers
1
Weekly downloads
 
Created
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

internal-ip

FAQs

Package last updated on 06 Jan 2021

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.