get port from map