Added option for detecting ports
Merge pull request #21 from SoapBox/H-Port-Fix

Added option for detecting ports