Hello KE5FX,
Thank you for the additional information. I think I might still be a bit confused, so I'll post what I think I am hearing and please correct me if I'm wrong.
A device will have the following addresses, in addition to any IPv6 addresses assigned by network routers:
- IPv4 DHCP or static
- IPv4 AutoIP
- IPv6 link local
A device can be addressed by all 3 at any time.
Regarding the comment: "Well, yeah, I could turn off DHCP (how/why would I want to do that?)", and that waiting for a DHCP address is a system code bug, it seems like what you are presenting is that the Wait function, intended to wait for the configured device configuration to be achieved, should not wait the 10 seconds by default for DHCP. If we comment that out it will have a negative effect on applications that are counting on a valid DHCP address before they start making network calls.
In your specific case, if you set the mode from DHCP to static, and left the static at the default of 0.0.0.0, you would still have an AutoIP and link local address you can use and there would be no delay due to DHCP. If your comment about why you would want to do that is that you don't want to change the setting from DHCP to static, I do not have a solution for that.
If someone uses only AutoIP, the discover server will not be accessible either, so use the localdiscover utility instead. I have attached a screen shot of my device with ending mac address of EE.
- Screenshot 2024-11-26 143035.png (42.25 KiB) Viewed 917 times
Additionally, providing that BOTH the PC and device are configured for the same local network (in this case PC is using an AutoIP address as well), you can use the LocalName option. In this case I used mydevice.local. That way you don't need to remember the IP address.
- Screenshot 2024-11-26 142424.png (68.83 KiB) Viewed 917 times
Please let me know if that helps in this case or if I missed something in the question.