How can I know the IP address of a remote host by using UDP broadcast message?

Posted by khera-satinder on Stack Overflow See other posts from Stack Overflow or by khera-satinder
Published on 2010-05-11T11:05:43Z Indexed on 2010/05/11 13:04 UTC
Read the original article Hit count: 296

Filed under:
|
|

Hi All,

I am developing an embedded system and very new to this TCP\IP. My problem is that once I installed my board in a local network and this board will acquire its IP address dynamically, it has to communicate with a client application running on one of the PC(other than DHCP server) in the network. To communicate with this new board the client application is required to know the IP address of the board. What is the way to know the IP address of the board? Will UDP broadcast work for this purpose? If yes please, explain in detail as I am unable to understand it. Please provide me some sample code in C if possible.

Regards, Satinder

© Stack Overflow or respective owner

Related posts about c

    Related posts about udp