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?