use nmap to scan port in range of ips code example Example: nmap port scan How to scan all target ports Sudo nmap pasteheretargetip