create port_probe; extract common func into util