Hi all,
Im quite new to TCP/IP and have a question about finding other devices IP address.
For my application I will have a PC connected via ethernet to several devices running TCP/IP on arm Cortex M3 through a switch.
These devices will have to talk to eachother as well as the PC. I will probably use DCHP to assign IP addresses.
My question is, how is each device supposed to know other IP addresses in the system? I can think of a few ways but I wondered if there was a standard approach?
Thanx
Do you think this would work ok?
So the idea is for each device to announce its address using a broadcast? Sounds good. But you have to remember that packets can be lost. Without some kind of acknowledgement you cannot be sure that the packet reached its destination. Unless, of course, you have a controlled environment where you can guarantee that packets will never be lost.
If packets are lost, thats not actually a problem because it will be broadcasting this message quite frequently to check if any new devices have been connected.
Thanks:)
limits the maximum number of devices on a network segment before it gets "flooded" with all these broadcasts.
particularly if the network is shared with other stuff...