I have found the answer. According to this post l viewtopic.php?f=22&t=5641 l
it seam's not possible by redirect tcpip port trough router since programming work with udp ports.
Cheers !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this is one option yes, but attention would not recommend to open this programming ports to the whole world wide web!!!
To be more secure I would recommend to have it behind a VPN connection,
and this is easy to establish with the Raspberry Pi.
install OpenVPN on the pi side
install OpenVPN on Windows CODESYS PC side
just forward the VPN Port to the Pi (this you need to setup in your router)
Then you could establish a connection between CODESYS PC and Raspberry Pi.
Add the remote VPN Address as Gateway Address in CODESYS and scan the Pi plc.
Connect then to the Pi with CODESYS... that's it.
Forwarding that way the webserver should be possible to inside this VPN tunnel it should be safe to access it.
Maybe I will add a detailed how-to because I think this is important to do it the right and secure way!
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I'd like to program RPI behind home router so I have to redirect programming port? I know router remote IP address with help of ddns service.
Is this possible?
I have found the answer. According to this post l viewtopic.php?f=22&t=5641 l
it seam's not possible by redirect tcpip port trough router since programming work with udp ports.
Cheers !
Hi,
this is one option yes, but attention would not recommend to open this programming ports to the whole world wide web!!!
To be more secure I would recommend to have it behind a VPN connection,
and this is easy to establish with the Raspberry Pi.
Then you could establish a connection between CODESYS PC and Raspberry Pi.
Add the remote VPN Address as Gateway Address in CODESYS and scan the Pi plc.
Connect then to the Pi with CODESYS... that's it.
Forwarding that way the webserver should be possible to inside this VPN tunnel it should be safe to access it.
Maybe I will add a detailed how-to because I think this is important to do it the right and secure way!
BR
Edwin
Hi,
there are many tutorials out there, as example one is:
http://www.raspberrypi.org/forums/viewtopic.php?t=20916
Never connect to the runtime ports to the internet without VPN otherwise the whole world could
manipulate your plc
BR
Edwin