only asks for port when port exists