Adding ability to differentiate between public and private ports (issue #19).