I have an embedded device which runs Linux and acts as a client, and a server at office. The IP address of the client is allocated by DHCP, so its IP address is actually
variable. I would like to know what is the simpliest way to maintain the communication between client and server when DHCP is enabled.
I once used socket many years ago to communicate between the client and the server. If I remember it right, I actually bypassed the dynamic IP issues by
using the computer name to replace the IP address. Even the client is not at the same local network as the server, the scheme still worked. Correct me if my
memory cheated me. Please let me know if socket is still the best solution for this kind of application involving DHCP?
I also heard from someone that it is necessary to implement multicast discovery protocols named BONJOUR, but I don't think it is necessary, and I don't think
it is a simple solution. What do you think?
Thanks.