Node-red-node-ping always return false


I am new to node-red. And new to this forum too! In the links please replace "-" with "." :slight_smile:

For learning purposes I want to try ping a target and show the result on an dashboard :slight_smile:

I use "node-red-node-ping" and hoped to get the Roundtriptime in ms as msg.payload. But I was wrong...

The following targets are "not pingable" and I get "false" as return value:

(IPVx = Automatic or =IPV6)

The following URL does work correct:
(IPVx = Automatic)

(IPVx = IPV4)

For me it seems that ping to IPV6 targets does not work correct.

My Desktop is a Windows 10 with IPv6 as default.

Please try to reproduce. And If you have a hint for me I would be very thankfull.

Kind Regards

Does the command line ping command work with ipv6?

yes in the "cmd" Commandline everything works fine

I thought it was necessary to use ping6 for IPV6 addresses.

Hello Colin,

what do you mean with "ping6"? This is not an windows cmd command nor an node-red task.

Linux = ping6
Windows = ping -6 [IPV6 address]

Have you tried both options ?


yes I tried IPV6 also and for better reading. I edited the original Forumstext.

@edje, Colin11: ping -6 force the usage of ipv6 but in my environment it is not necessary cause my host use ipv6 as default. ping -6 does work correct :slight_smile:

Which version of node-red, nodejs and node-red-node-ping are you using?
node -v to get nodejs version.

It is working ok for me on Ubuntu, specifying my own ipv6 local address.

Node-RED version: v2.1.3
Node.js version: v16.13.0
Windows_NT 10.0.19042 x64 LE

node-red-node-ping 0.3.1

Everything installed on Monday (this week).

Is your system set up to use IPV6?

Hello ghayne,

my Desktop is a Windows 10 with IPv6 as default.

Like this?

Yes, it looks as your screenshot :slight_smile:

Just a thought :slight_smile:
[edit - I missed that you had done it successfully from the command line!]

Can you post your flow please.

Do you mean export and upload?

flows.json (1.5 KB)
Hope this works :slight_smile:

This is the correct way:

        "id": "4b37492f5991db3d",
        "type": "tab",
        "label": "Buggy Ping Flow",
        "disabled": false,
        "info": "",
        "env": []
        "id": "97f6a13019a172f9",
        "type": "ping",
        "z": "4b37492f5991db3d",
        "protocol": "Automatic",
        "mode": "triggered",
        "name": "",
        "host": "",
        "timer": "20",
        "inputs": 1,
        "x": 310,
        "y": 160,
        "wires": [
        "id": "7b60a8ab623186d5",
        "type": "inject",
        "z": "4b37492f5991db3d",
        "name": "",
        "props": [
                "p": "payload"
                "p": "topic",
                "vt": "str"
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 110,
        "y": 160,
        "wires": [
        "id": "14af382d190e8dc9",
        "type": "debug",
        "z": "4b37492f5991db3d",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 620,
        "y": 180,
        "wires": []