[#969] Refactor port check.
Authored by: Paul Sokolovsky 2010-09-29
Parent(s): [e031dc]
Child(ren): [28c1b4]