getPort()

Method. Gets the protocol port for the current session. This property is linked to the Port box in the Session Setup dialog box.

public int getPort()