Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Industrial Technology

Securely Access a PLCnext Web Server Assigned an IP via DHCP

 would like to share an application story from Ignacio Aláez, a Solution Engineering Expert from Phoenix Contact Spain, which might be of interest to the PLCnext Community.



As part of a project we have the problem of accessing a Plcnext webserver when the IP is assigned via DHCP.

We found a workaround using the free service Duckdns : https://www.duckdns.org/

There is a variety of ways to login, for instance via Google account. You get a token and aftewards you can select a domain like : http:// yourdomainforplcnext.duckdns.org.

The service has an API that can be used from Plcnext Engineer.

With the help of FB PBCL_SysNetwork ( part of PlcnextBase library ), you can readout the IP that has been assigned to the plc by the DHCP server.

Using again a FB from the same library, PBCL_SysLinuxShell, this command can be sent to Duckdns:

curl -s --connect-timeout 5 -m 15 "https://www.duckdns.org/updat...n>&ip=<your_local_ip>&verbose=true"

The trick is to update your host not with the public address of your router ( this is the normal use of this service ), but with you local address assigned by DHCP.

You have to type https://yourdomain.duckdns.org in a browser running in a pc in the local network. This browser will go to Duckdkns to resolve the IP and it will answer with the local IP.


Industrial Technology

  1. Streamline VLAN Setup on PLCnext Control with Linux Terminal Commands
  2. Installing and Licensing Atvise SCADA on PLCnext Controllers
  3. Cluster Management on PLCnext: Harnessing Kubernetes for Industrial Automation
  4. Integrating Machine Learning into PLCnext Controllers
  5. Real-Time PLCnext Monitoring with Tableau Dashboards
  6. Create Power BI Dashboards from PLCnext Cloud Data
  7. Create Real-Time Grafana Dashboards for PLCnext Control in Azure IoT Hub
  8. Optimizing Java 9 Apps on PLCnext Control Using Jlink
  9. Data Privacy Protection with easymon Remote Monitoring
  10. easymon Finder: Effortless Remote Monitoring for PLCnext Systems