How to get all system names connected to the local network using java?

I want all systems to be connected on the local network? Can anyone suggest me?

+3
source share
3 answers

The package I used in Java to achieve this was called jcifs. Here is a link to the library .

Please note that to identify the machine in the subnet, you will need to ping all available IP addresses in the subnet. From there, you can do a reverse lookup of the IP address to get the details of the machines.

OSI , ping , , ICMP - OSI Model. ICMP (ping) . , Windows . . IP- SubNet ICMP. ICMP ping 1 SMB- IP-. , Microsoft Network, .

NetBios, - IP- .

, .

+2

, ? .

?

, UDP .

- , , .

0

Java, TCP/IP, IP- IP- LAN. , , - , IP-. IP-, " ". , " " " ". "- " , , , .

( , Java) ARP- IP- , ARP .

, , ICMP Ping, .

IP-, DNS, DNS-. , IP- DNS-.

, , , .

0

Source: https://habr.com/ru/post/1720967/


All Articles