This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Finding IP addresses

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

Parents
  • You have several options.

    Configure the DHCP server to always supply a fixed IP address depending on the MAC address of the different units. Then you can configure unit A to know what IP unit B will get when unit B is up and running.

    Use a name server and let your units perform a lookup to translate from name to IP. If the units gets dynamic IP addresses, then they can report in to a dynamic DNS server. You may use the serial number as hostname when registering them.

    Write your own magic server application where each unit reports in their connect information and requests back connect information for other units.

    Don't use DHCP at all, and instead configure fixed IP numbers in the units.

Reply
  • You have several options.

    Configure the DHCP server to always supply a fixed IP address depending on the MAC address of the different units. Then you can configure unit A to know what IP unit B will get when unit B is up and running.

    Use a name server and let your units perform a lookup to translate from name to IP. If the units gets dynamic IP addresses, then they can report in to a dynamic DNS server. You may use the serial number as hostname when registering them.

    Write your own magic server application where each unit reports in their connect information and requests back connect information for other units.

    Don't use DHCP at all, and instead configure fixed IP numbers in the units.

Children