# \[New Feature\] Option to specify target UDP port in node-red-node-wol

**URL:** https://discourse.nodered.org/t/new-feature-option-to-specify-target-udp-port-in-node-red-node-wol/18276
**Category:** Feature Requests
**Created:** [22 November 2019 10:46 UTC](https://discourse.nodered.org/t/new-feature-option-to-specify-target-udp-port-in-node-red-node-wol/18276 "2019-11-22T10:46:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Silla](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/silla/32/14515_2.png) [@Silla](https://discourse.nodered.org/u/Silla)
#### Post date: [22 November 2019 10:46 UTC](https://discourse.nodered.org/t/new-feature-option-to-specify-target-udp-port-in-node-red-node-wol/18276/1 "2019-11-22T10:46:40Z")

</div>

Hello,  
I added the option to specify the target UDP port for wake on lan magic packets in node-red-node-wol. Some implementations use port 9, others port 7 and some quirky devices yet other ports.  
The new parameter defaults to 9, so old flows should not break upon upgrade.  
The underlying wake\_on\_lan nodejs module already supports the port option, so no changes are needed there.

You can find the code at [https://github.com/SillaRizzoli/node-red-nodes/tree/master/io/wol](https://github.com/SillaRizzoli/node-red-nodes/tree/master/io/wol)

It's my first attempt at modifying a node-red node and I have very limited experience with javascript, so probably the code sucks, but I welcome any feedback!

Please consider the change for inclusion in node-red/node-red-nodes.

Regards  
Silla

---

<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: [22 November 2019 11:49 UTC](https://discourse.nodered.org/t/new-feature-option-to-specify-target-udp-port-in-node-red-node-wol/18276/2 "2019-11-22T11:49:48Z")

</div>

Hi,  
yes - happy to look at a Pull Request with those changes.

---

<div class="post-metadata">

### Author: ![Silla](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/silla/32/14515_2.png) [@Silla](https://discourse.nodered.org/u/Silla)
#### Post date: [22 November 2019 16:11 UTC](https://discourse.nodered.org/t/new-feature-option-to-specify-target-udp-port-in-node-red-node-wol/18276/3 "2019-11-22T16:11:56Z")

</div>

Ok, thanks!
