# Node-red-node-snmp port change

**URL:** <https://discourse.nodered.org/t/node-red-node-snmp-port-change/76868>\
**Category:** General\
**Created:** [23 March 2023 14:51 UTC](https://discourse.nodered.org/t/node-red-node-snmp-port-change/76868 "2023-03-23T14:51:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dereine](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dereine](https://discourse.nodered.org/u/dereine)\
**Post date:** [23 March 2023 14:51 UTC](https://discourse.nodered.org/t/node-red-node-snmp-port-change/76868/1 "2023-03-23T14:51:42Z")

</div>

Good day

I am using node-red-node-snmp to connect from a site to my site. At the outgoing site, the port is released for my IP via Fortigate. Unfortunately, I cannot enter an IP range there. However, this location has several servers. Now my question is, is it possible to adjust the port in the node-red-node-snmp so that I can make a port forwarde at the firewall with a different outgoing port which then redirects to 161, such as 8161 or so?

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![dereine](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dereine](https://discourse.nodered.org/u/dereine)\
**Post date:** [13 April 2023 14:45 UTC](https://discourse.nodered.org/t/node-red-node-snmp-port-change/76868/2 "2023-04-13T14:45:42Z")

</div>

So there are no options to change the default Port in this node?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [13 April 2023 15:39 UTC](https://discourse.nodered.org/t/node-red-node-snmp-port-change/76868/3 "2023-04-13T15:39:40Z")

</div>

Have you tried leaving the host field blank, and setting `msg.host`  
From help sidebar text

> msg.host may contain the host including the port.

---

<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:** [13 April 2023 15:58 UTC](https://discourse.nodered.org/t/node-red-node-snmp-port-change/76868/4 "2023-04-13T15:58:02Z")

</div>

Or indeed just adding the port ?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/0/90fcd107fc7693b4185a037aba700dca887b13f8.png)

---

<div class="post-metadata">

**Author:** ![dereine](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dereine](https://discourse.nodered.org/u/dereine)\
**Post date:** [14 April 2023 08:49 UTC](https://discourse.nodered.org/t/node-red-node-snmp-port-change/76868/5 "2023-04-14T08:49:21Z")

</div>

My bad. This is the solution. I forgot, that i can set a optional port

---

<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:** [28 April 2023 08:49 UTC](https://discourse.nodered.org/t/node-red-node-snmp-port-change/76868/6 "2023-04-28T08:49:44Z")

</div>

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