Make some changes to getPort to use map on the serverOpt.