getPort Method