Added capability to use a port string instead of port type for mac compatibility.