getPort implemented