Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Remote programming

mbruck
2014-05-26
2014-05-27
  • mbruck - 2014-05-26

    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?

     
  • mbruck - 2014-05-26

    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 !

     
  • eschwellinger

    eschwellinger - 2014-05-26

    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.

    1. install OpenVPN on the pi side
    2. install OpenVPN on Windows CODESYS PC side
    3. 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

     
  • eschwellinger

    eschwellinger - 2014-05-27

    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

     

Log in to post a comment.