# \[ANNOUNCE\] node-red-contrib-icmp

**URL:** <https://discourse.nodered.org/t/announce-node-red-contrib-icmp/24240>\
**Category:** Share Your Nodes\
**Created:** [4 April 2020 22:55 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-icmp/24240 "2020-04-04T22:55:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Post date:** [4 April 2020 22:55 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-icmp/24240/1 "2020-04-04T22:55:58Z")

</div>

**Hello members, I just released a new node that I was working on for maybe a bit too long, but finally, it is here.**  
[![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/b/eb3f6ea871690a382e683fb0066ca85d65202f55.png)](https://github.com/vukmirovic98/node-red-contrib-icmp)

This package contains two nodes:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/f/9fe3793420867ff5ae391ba180a3d68318c181c6.png)

* * *

**icmp listen**  
This node is used for listening for ICMP packages on the device. So if for example, we ping the device that is running node-red as shown: ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/a/ba762303b6e1b824942954e1ee49c45d3bea0288.png)  
We can see the resulting output in the node-red from the 'ICMP listen' node: ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/1/31edc9c374eb94e6e2f34ffda67b86976bdbea3a.png)

Payload (or msg.icmp.message) output can be configured in the node settings: ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/d/0d2ad5f05ac0ea99669e693cff291cdaeda36812.png)

**NOTE!**  
When pinging the localhost (or the external device IP _e.g_ 192.168.1.110) where 'icmp listen' is running you will get two identical results from the node...  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/46ffb2498e2f896ad147545f6affdf100b725487.png)  
I will try to explain it in several steps, as I couldn`t find any information about this(imagine it like sending an SMS to the same phone, you will have two same messages, one that is sent and another one that is received):

1. We send the ICMP packet, and we are waiting for the response packet. (icmp listen captures the **sent** packet).
2. The response packet is sent back (icmp listen captures the **response** packet).

If anyone knows any name for this term I would really love to hear it 😄

* * *

**icmp send**  
This node is used for sending the ICMP package. The **msg.payload** (old .topic) can contain a string you want to send, while **msg.address** can contain an IP address or a domain name  
The output is similar as of the listen node :  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/8/68f7d5086217081434aef0d35621786d34793329.png)

* * *

There is more work on this node that will be done, but I wanted to hear some community thoughts on work done so far.  
So I would be really grateful on hearing your opinions on the nodes itself, my code and etc.  
In the meantime, I will add develop other functions to mine other (CO\*ID-19) node.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [4 April 2020 23:28 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-icmp/24240/2 "2020-04-04T23:28:57Z")

</div>

Interesting node, will have a play.  
Why is the ICMP.message property a duplicate of the payload ?

---

<div class="post-metadata">

**Author:** ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Post date:** [4 April 2020 23:36 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-icmp/24240/3 "2020-04-04T23:36:22Z")

</div>

Well honestly wanted to keep it similar to the TCP node, and wanted the ICMP to contain all of the date, no matter of the duplicate

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 June 2020 23:02 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-icmp/24240/4 "2020-06-03T23:02:17Z")

</div>

This topic was automatically closed after 60 days. New replies are no longer allowed.
