By default, Telnet communication is done using two ports:
Of course it is possible to configure these ports to other values.