If someone had to find all the ports running (say http ), the person has to first the open ports using get_open_ports() and then do a get_service() . It'd be great to have a method get_ports_by_service('service_name') which can return a list of ports that run the service.