Back to product page

LocalPort property

Holds the destination port on the local computer.


A Long value


  • Basic
object.LocalPort [= value]  
The LocalPort(object,value) syntax has these parts:
objectAn expression evaluating to an object of type Channel.
valueA Long value.


Together with the LocalAddress property, LocalPort defines where wodSSHTunnel will listen for incoming connections.

In fact, LocalPort has two purposes. First, when you define LocalListen in channel type, in which case wodSSHTunnel listens on this port and accepts new connections. Second, when you define RemoteListen in channel type, in which case wodSSHTunnel forwards remotely initiated connections to this port.