# Error on Remote connection to Raspberry PI

**URL:** <https://discourse.nodered.org/t/error-on-remote-connection-to-raspberry-pi/29148>\
**Category:** General\
**Created:** [29 June 2020 07:50 UTC](https://discourse.nodered.org/t/error-on-remote-connection-to-raspberry-pi/29148 "2020-06-29T07:50:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![swanside](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/swanside/32/28781_2.png) [@swanside](https://discourse.nodered.org/u/swanside)\
**Post date:** [29 June 2020 07:50 UTC](https://discourse.nodered.org/t/error-on-remote-connection-to-raspberry-pi/29148/1 "2020-06-29T07:50:42Z")

</div>

Hello everybody  
I am trying to get my Solar PV to chat with my PI  
On the Modbus node I in error put 502 as the port and now when I look in Putty the Node Red will not run, AFter some googling I think I have discovered that the permissions wil not allow access to any port below 1024, so is there a text file within the PI I can acess to change the 502 to a higher port number to get it to run again?  
28 Jun 15:38:25 - Error: listen EACCES: permission denied 0.0.0.0:502

Regards  
Paul.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [29 June 2020 07:52 UTC](https://discourse.nodered.org/t/error-on-remote-connection-to-raspberry-pi/29148/2 "2020-06-29T07:52:46Z")

</div>

On what machine are you running Node-Red and how did you install the program? (Node-Red)

---

<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:** [29 June 2020 08:04 UTC](https://discourse.nodered.org/t/error-on-remote-connection-to-raspberry-pi/29148/3 "2020-06-29T08:04:52Z")

</div>

If that is crashing node-red then that is a bug in the modbus node, nothing you do there should crash node-red. To fix it in your flow run node red using  
`node-red --safe`  
which will start the editor without starting the flows. Then you can correct the port and when you deploy it will start the flows.

---

<div class="post-metadata">

**Author:** ![swanside](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/swanside/32/28781_2.png) [@swanside](https://discourse.nodered.org/u/swanside)\
**Post date:** [29 June 2020 08:44 UTC](https://discourse.nodered.org/t/error-on-remote-connection-to-raspberry-pi/29148/4 "2020-06-29T08:44:28Z")

</div>

Thank you Colin  
That worked.  
Regards  
Paul.

---

<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:** [29 June 2020 09:42 UTC](https://discourse.nodered.org/t/error-on-remote-connection-to-raspberry-pi/29148/5 "2020-06-29T09:42:44Z")

</div>

Excellent. Now ideally you should go to the github repository for the node (which should be linked from [flows.nodered.org](http://flows.nodered.org)) and submit an issue against the node, saying that it crashes node red if a low port number entered.

---

<div class="post-metadata">

**Author:** ![swanside](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/swanside/32/28781_2.png) [@swanside](https://discourse.nodered.org/u/swanside)\
**Post date:** [29 June 2020 12:19 UTC](https://discourse.nodered.org/t/error-on-remote-connection-to-raspberry-pi/29148/6 "2020-06-29T12:19:14Z")

</div>

Thank you Colin. I have just done that.  
Regards  
Paul.

---

<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:** [13 July 2020 12:29 UTC](https://discourse.nodered.org/t/error-on-remote-connection-to-raspberry-pi/29148/7 "2020-07-13T12:29:16Z")

</div>

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