# Node-red-node-ping - Add options for IPv4/IPv6 selection

**URL:** <https://discourse.nodered.org/t/node-red-node-ping-add-options-for-ipv4-ipv6-selection/41137>\
**Category:** Feature Requests\
**Created:** [17 February 2021 04:52 UTC](https://discourse.nodered.org/t/node-red-node-ping-add-options-for-ipv4-ipv6-selection/41137 "2021-02-17T04:52:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![meeki007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/meeki007/32/12499_2.png) [@meeki007](https://discourse.nodered.org/u/meeki007)\
**Post date:** [17 February 2021 08:01 UTC](https://discourse.nodered.org/t/node-red-node-ping-add-options-for-ipv4-ipv6-selection/41137/2 "2021-02-17T08:01:12Z")

</div>

I looked at the node. I could add this feature for Linux, however I'd need help to bring all supported platforms up to date.

relevant code in the node:

```auto
if (plat == "linux" || plat == "android") {
            commandLineOptions = ["-n", "-w", timeoutS, "-c", "1"]
        } else if (plat.match(/^win/)) {
            commandLineOptions = ["-n", "1", "-w", hostOptions.timeout]
        } else if (plat == "darwin" || plat == "freebsd") {
            commandLineOptions = ["-n", "-t", timeoutS, "-c", "1"]
        } else {
            node.error("Sorry - your platform - "+plat+" - is not recognised.", msg);
            return; //dont pass go - just return!
        }

```

---

_[View the full topic](https://discourse.nodered.org/t/node-red-node-ping-add-options-for-ipv4-ipv6-selection/41137)._
