# Ping to a different Pi via NodeRED

**URL:** <https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591>\
**Category:** General\
**Created:** [23 July 2020 09:00 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591 "2020-07-23T09:00:42Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![edwardr](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Post date:** [23 July 2020 09:00 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/1 "2020-07-23T09:00:42Z")

</div>

I`m looking for a way to get two pis to ping to each other via ethernet cable, I was wondering what node I would use for this exactly? 🙂

Any help would be much appreciated

---

<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:** [23 July 2020 09:05 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/2 "2020-07-23T09:05:13Z")

</div>

Have you tried searching the flow library for 'ping'? [https://flows.nodered.org/search?term=ping](https://flows.nodered.org/search?term=ping)

---

<div class="post-metadata">

**Author:** ![edwardr](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Post date:** [23 July 2020 09:32 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/3 "2020-07-23T09:32:45Z")

</div>

I have done however isnt the ping node to check to a server and not to a rasp pi connected via ethernet?

---

<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:** [23 July 2020 09:37 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/4 "2020-07-23T09:37:35Z")

</div>

Ping can be used to check another device on the network.

A Raspberry Pi connected via ethernet is another device on the network that you can ping.

Or do you mean something else?

---

<div class="post-metadata">

**Author:** ![edwardr](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Post date:** [23 July 2020 09:42 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/5 "2020-07-23T09:42:38Z")

</div>

Thats correct, however when I select ping node it asks for a target, I`ve been having trouble trying to find what the target is and also when I`m looking for where a port is connected on Pi generally? Any ideas where to start?

---

<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:** [23 July 2020 09:52 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/6 "2020-07-23T09:52:23Z")

</div>

You need to know the IP address of the Pi you want to ping.

If you have directly connected two Pis with an ethernet cable how have you configured their network?

---

<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:** [23 July 2020 09:58 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/7 "2020-07-23T09:58:21Z")

</div>

Pi should also use mdns - so as long as they have different hostnames (?) then you can try manually first `ping raspberrypi1` or whatever you have set the hostname to - or `ping raspberrypi1.local` - and see if they work.

(Or use `sudo raspi-config` to set the hostnames first)

---

<div class="post-metadata">

**Author:** ![edwardr](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Post date:** [23 July 2020 10:12 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/8 "2020-07-23T10:12:41Z")

</div>

Thank you for your help here - so Im struggling as to how to config the network exactly- I cant seem to find anything online about it - I`ve given both pis new hostnames - just need them talking now

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 July 2020 10:29 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/9 "2020-07-23T10:29:48Z")

</div>

Explain exactly how the devices are connected to each other and to the rest of your network please. Are the two devices connected to each other by ethernet with no connection to anything else, such as a router for example?

On each device open a terminal and run `ifconfig` and post the output here. Use the `</>` button and paste it in. Don't forget to answer the questions above though.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [23 July 2020 10:51 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/10 "2020-07-23T10:51:12Z")

</div>

If you want to connect twp Pi's directly to each other you will need a crossover cable NOT a normal ethernet cable!

[https://www.computercablestore.com/what-are-ethernet-crossover-cables](https://www.computercablestore.com/what-are-ethernet-crossover-cables)

---

<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:** [23 July 2020 10:56 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/11 "2020-07-23T10:56:32Z")

</div>

The pi’s ethernet port is auto sensing so it doesn’t matter which cable you use

> **[Guide To…Direct Network Connection](https://pihw.wordpress.com/guides/direct-network-connection/)**
>
> UPDATE – March 2017 Raspberry Pi Remote Connections – Without A Network! No keyboard or screen available for your Raspberry Pi, but you have a laptop?  There is now a very easy solution…

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [23 July 2020 11:12 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/12 "2020-07-23T11:12:23Z")

</div>

Cheers Paul, I just downgraded my network knowledge 🙂

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 July 2020 11:30 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/13 "2020-07-23T11:30:40Z")

</div>

I believe that also applies to virtually any modern ethernet interface.

---

<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:** [23 July 2020 11:32 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/14 "2020-07-23T11:32:58Z")

</div>

@Colin - That's my understanding too, but since this was Pi to Pi I wanted to point to a Pi reference about it. 😁

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 July 2020 12:35 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/15 "2020-07-23T12:35:06Z")

</div>

I wasn't suggesting there was anything wrong with the link, just adding further information, in case anyone thought this was a Pi specific feature.

---

<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:** [21 September 2020 12:35 UTC](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591/16 "2020-09-21T12:35:11Z")

</div>

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