in reply to Re^3: how to connect two DUT console in script
in thread how to connect two DUT console in script

You did not configure $port1 in the same way you configured $port.

Maybe when you treat $port1 the same way, it will act the same way?