$port
From Scriptwiki
Returns the port number of the server to which you're currently connected.
$port
Example
echo -a $port
Echos the port to your active window.
Returns the port number of the server to which you're currently connected.
$port
echo -a $port
Echos the port to your active window.