# PING - pass in host/target address via msg?

**URL:** <https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818>\
**Category:** General\
**Created:** [12 November 2018 21:04 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818 "2018-11-12T21:04:25Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweetwater](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sweetwater](https://discourse.nodered.org/u/sweetwater)\
**Post date:** [12 November 2018 21:04 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/1 "2018-11-12T21:04:25Z")

</div>

Ping node:  
Is there any method to pass in the host ip address of the Ping target?  
We are hardcoding in the PING address and that works ok, but looking for a way to feed in the ip address via msg.

THank you

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [12 November 2018 21:09 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/2 "2018-11-12T21:09:06Z")

</div>

...and which ping node are you using????

---

<div class="post-metadata">

**Author:** ![sweetwater](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sweetwater](https://discourse.nodered.org/u/sweetwater)\
**Post date:** [12 November 2018 21:13 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/3 "2018-11-12T21:13:57Z")

</div>

Thank you- the Ping node we are using is the one under the 'Network' .

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [12 November 2018 21:24 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/4 "2018-11-12T21:24:28Z")

</div>

> [@sweetwater](#):
>
> Ping node we are using is the one under the 'Network' .

That doesn't help identify it. What npm module did you install to get that 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:** [12 November 2018 23:41 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/5 "2018-11-12T23:41:15Z")

</div>

There are at least 4 on the [flows.nodered.org](http://flows.nodered.org) site. One must do what you want...

---

<div class="post-metadata">

**Author:** ![sweetwater](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sweetwater](https://discourse.nodered.org/u/sweetwater)\
**Post date:** [13 November 2018 15:05 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/6 "2018-11-13T15:05:15Z")

</div>

Thank you. I had the Node Red from the Raspbian install.  
Will try one of the PING-Configurable in the Node Library

Thank you

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [13 November 2018 15:35 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/7 "2018-11-13T15:35:02Z")

</div>

> [@sweetwater](#):
>
> Thank you. I had the Node Red from the Raspbian install.  
> Will try one of the PING-Configurable in the Node Library

??? How were you doing the ping in the first place?

---

<div class="post-metadata">

**Author:** ![sweetwater](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sweetwater](https://discourse.nodered.org/u/sweetwater)\
**Post date:** [13 November 2018 15:37 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/8 "2018-11-13T15:37:09Z")

</div>

The Ping Node that was installed only allowed for 'hardcoded' IP address.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [13 November 2018 15:38 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/9 "2018-11-13T15:38:58Z")

</div>

are you talking about a node-red node? ot a node.js node?

---

<div class="post-metadata">

**Author:** ![sweetwater](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sweetwater](https://discourse.nodered.org/u/sweetwater)\
**Post date:** [13 November 2018 15:39 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/10 "2018-11-13T15:39:51Z")

</div>

node-red-node-ping

0.0.15

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [13 November 2018 15:40 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/11 "2018-11-13T15:40:06Z")

</div>

I didn't think that a ping node was installed in a vanilla node-RED Raspbian installation?  
Have you added one to the palette?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [13 November 2018 15:42 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/12 "2018-11-13T15:42:19Z")

</div>

No there is no base ping, but if you search the flows you will find some. Always a good idea to do a search for existing flows.

---

<div class="post-metadata">

**Author:** ![sweetwater](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sweetwater](https://discourse.nodered.org/u/sweetwater)\
**Post date:** [13 November 2018 16:40 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/13 "2018-11-13T16:40:09Z")

</div>

Need some asstance:

1. Went to Palette Manger in Node Red

2. Searched for and found this alternative PING node which looks like it would work.  
node-red-configurable-ping  
A Node-RED node which takes input and pings a remote server.

3. Pressed Installed, but failed to install?

Any suggestions?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [13 November 2018 16:45 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/14 "2018-11-13T16:45:34Z")

</div>

What did it say, what does the log say?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [13 November 2018 16:49 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/15 "2018-11-13T16:49:58Z")

</div>

Hi @sweetwater - the lack of feedback in the editor when an install fails is a known issue we're resolving in the next release.

You may need to drop to the command line and run `npm install node-red-configurable-ping` manually in `~/.node-red` to get the full details.

---

<div class="post-metadata">

**Author:** ![sweetwater](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sweetwater](https://discourse.nodered.org/u/sweetwater)\
**Post date:** [13 November 2018 19:06 UTC](https://discourse.nodered.org/t/ping-pass-in-host-target-address-via-msg/4818/16 "2018-11-13T19:06:03Z")

</div>

Thank Nick and team.  
It turns out that the install under the Palette Manager worked.

The problem was user mistake- we had our Pi computer on a static IP for our application and that was not getting thru.
