Tool for scanning active servers with all their ports by the TCP protocol, the only thing you need is to insert the network segment without its last bit and the maximum port to be scanned.
git clone https://github.com/micro-joan/pdiscover
chmod +x pdiscover.sh
./pdiscover 172.19.0 <max_port_to_scan>