Network Address Available after Server Start

22 views
Skip to first unread message

Roberto Filippi

unread,
Jul 22, 2025, 6:30:22 AMJul 22
to open62541

Hi Team,

In my application, it may happen that a network address becomes available only after the OPC server has started (e.g., due to a slow AutoIP assignment). This address is not known beforehand.

I’ve noticed that the server sockets are opened during server startup. In such cases, newly available addresses do not have a socket associated with them and therefore cannot be used by clients.

Am I missing something? Is there a known solution for this scenario?


Thanks

Roberto

vas...@linutronix.de

unread,
Jul 23, 2025, 2:54:58 AMJul 23
to open62541
Hi Roberto,

I don't know of a ready-made solution for this in open62541.
I have solved such problems so far by first checking in the application whether an IP address has been assigned (link-local/AutoIP, DHCP, or manually) on the interface that I want to use and only then starting the server.

Depending on how your overall (operating) system works, it may also be necessary to implement additional logic for IP changes.
For example, a new DHCP address, or new settings via a special configuration interface or other “ethernet fieldbus”.

Maybe someone will come up with better ideas if you add more details about the target system (embedded or desktop OS, interfaces, etc.)

Cheers,
Vasilij
Reply all
Reply to author
Forward
0 new messages