Ning icon indicating copy to clipboard operation
Ning copied to clipboard

add scanning directly of individual ports in the range from 1 to 1024

Open OmlineEditor opened this issue 4 years ago • 1 comments

if there are devices on the network but they are protected by a firewall and do not respond to ping and broadcast packets, then your program does not see these devices. there are open ports on the devices, for example SMB, but your program does not see it.

To search for such devices, please add scanning directly of individual ports in the range from 1 to 1024 (popular ports)

OmlineEditor avatar Oct 21 '21 14:10 OmlineEditor

Scanning up to port 1024 might be a little excessive (i.e. slow), but scanning a few common ports (like bonjour, ssh, http) might be doable.

There are two different types of scans in Ning:

  1. One for finding devices on the network
  2. One for finding open ports and services on a device

In this case we would need to extend the (1.) scan, which can be found here: https://github.com/csicar/Ning/blob/master/app/src/main/java/de/csicar/ning/ScanRepository.kt#L73

csicar avatar Oct 28 '21 08:10 csicar