First function getPort