Network Address Available after Server Start

29 views
Skip to first unread message

Roberto Filippi

unread,
Jul 22, 2025, 6:30:22 AM7/22/25
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 AM7/23/25
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

Jacky Bek

unread,
Feb 28, 2026, 10:49:55 PM (2 days ago) Feb 28
to vas...@linutronix.de, open62541
server address should be assigned static.
otherwise how do the clients find it ?


Sent from my iPhone

On 23 Jul 2025, at 14:55, vas...@linutronix.de <vasilij.s...@linutronix.de> wrote:


--
You received this message because you are subscribed to the Google Groups "open62541" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open62541+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/open62541/20d756b9-1902-485a-bc6a-0bff3c93d123n%40googlegroups.com.

Mathias Obetzhauser

unread,
Mar 1, 2026, 6:22:03 AM (2 days ago) Mar 1
to open62541
For this we have LDS, GDS and MDNS. 
Reply all
Reply to author
Forward
0 new messages