Skip to main content
edited tags
Link
Zac67
  • 88.1k
  • 4
  • 73
  • 137
edited body
Source Link

So as the title say, how does a host know the ip addresses of other hosts on the same LAN? Is there a specific protocol for this? My first thought was that ARP could be used. But ARP seem to take an ip address as input and give the corresponding MAC address.

But say two hosts are connect in a LAN, how does host A know that B exist and that B has the ip address, say, 192.168.0.16?

So as the title say, how does a host know the ip addresses of other hosts on the same LAN? Is there a specific protocol for this? My first thought was that ARP could be used. But ARP seem to take an ip address as input and give the corresponding MAC address.

But say two hosts are connect in a LAN, how does host A know that B exist and that B has the ip address, say, 192.168.0.1?

So as the title say, how does a host know the ip addresses of other hosts on the same LAN? Is there a specific protocol for this? My first thought was that ARP could be used. But ARP seem to take an ip address as input and give the corresponding MAC address.

But say two hosts are connect in a LAN, how does host A know that B exist and that B has the ip address, say, 192.168.0.6?

Source Link

How does a host know the ip addresses of other hosts on the same LAN?

So as the title say, how does a host know the ip addresses of other hosts on the same LAN? Is there a specific protocol for this? My first thought was that ARP could be used. But ARP seem to take an ip address as input and give the corresponding MAC address.

But say two hosts are connect in a LAN, how does host A know that B exist and that B has the ip address, say, 192.168.0.1?