It is used to detect live hosts in the network, open ports of devices, running…