Add possibility to retrieve port for mac