st-one-io / node-red-contrib-s7

A Node-RED node to interact with Siemens S7 PLCs
GNU General Public License v3.0
112 stars 58 forks source link

Connecting to plc through internet #127

Open Kar3s opened 8 months ago

Kar3s commented 8 months ago

Hello everyone!

I have read through the previously closed and the still open issues, hoping to find a solution to my problem, but unfortunately, I couldn't find anything.

In my situation, I am trying to communicate with several PLCs located throughout the city. Each of them has a different public IP address.

The problem is that when I forward port 102 on the router and set the endpoint to the router's public IP address, I receive the error message "Error: Timeout connecting to the transport."

I understand that using a VPN could be a better solution, and in the case of connecting to only one PLC, it works properly. However, I need to connect to multiple PLCs simultaneously.

I am not sure, if its a bug, or anyone bumped into this specific problem in the past, but hope you know the solution.

Also thank you for your work!

Peturtjuhh commented 8 months ago

Im not expert on this, But if you try to connect to the IP in a browser to see if you can see the PLC page? to make sure the connecton is valid, On those PLCs is the S7 protocol turned on? Have you tried Pinging them?