OpenBSD has the
fstat(1) program which can show an application that has a TCP or UDP open port; e.g.:
$ fstat | grep :1720
But an application does not have to be listening to the port for it to be open -- if
pf(4) is being used, a rdr rule may open the port.