Is there an elegant way to make a program discover a new computer connected to the network?
I want my program to "automatically detect" a new computer connected to the network (they are on the same network). Like a USB device connected to a computer.
What I am doing now is to save a list of all computers on the network from time to time. Another approach is to PING all available IP addresses on the subnet.
Are there any other elegant approaches?
Thank!
ARP - . DHCP , , , ARP . MAC- IP- .
DHCP, ARP- , , .
( , IPv6, , ).
, , telnet SNMP, MAC. MAC- . IP-, ARP: s.
, , ARP. MAC IP- , ( ...) .
- , , , .
, , , .
, , / (, ), , (. , , ?), .