In Library Manager, add the Net Base Services library.
In your program declare a variable of type NBS.ResolveHostname
Call this instance to resolve the hostname.
Last edit: i-campbell 2021-02-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to run an Modbus TCP connection to a device that is offsite on a different network via a dynamic DNS like for example DuckDNS?
Update the IP address here:
https://help.codesys.com/webapp/_mod_lib_modbustcpslave;product=core_modbus_configuration_editor;version=3.5.16.0#method-updatecommunicationsettings
Resolve the hostname here:
https://help.codesys.com/webapp/18ac1JTkIbRdFRUVoKkJs8xQKxc%2FResolveHostname;product=NetBaseServices;version=3.5.16.0
thank you for your reply, i already knew about the first one but i can't find the second one, where do i need to edit those variables?
In Library Manager, add the Net Base Services library.
In your program declare a variable of type NBS.ResolveHostname
Call this instance to resolve the hostname.
Last edit: i-campbell 2021-02-23
thank you for your reply, I'm still not having any luck, could you make an example?