I think you can't, but you don't have to care about OS assigned ports, you can put and get data from your 'z port, see how-to karol [EMAIL PROTECTED] wrote: > As an addition to this message, how would one do the following? > > When one connects to a remote IP address, we get a local port number as well > as a remote port number. How do I find out what the local port number is? > For example: > > >> z: open tcp://192.168.0.1:21 > >> probe z > > make object! [ > scheme: tcp > host: 192.168.0.1 > port-id: 21 > user: none > pass: none > target: none > path: none > proxy: none > access: none > allow: none > buffer-size: none > limit: none > handler: none > status: none > size: none > date: none > url: none > sub-port: none > locals: none > state: > make object! [ > flags: 524819 > misc: 80 > tail: 0 > num: 0 > with: "^M^/" > custom: none > index: 0 > func: 3 > fpos: 0 > inBuffer: none > outBuffer: none > ] > timeout: none > ] > > We know we are connected to remote port 21, and we know by my netstat that: > > Active Connections > > Proto Local Address Foreign Address State > ...stuff... > TCP davids:4403 server:ftp ESTABLISHED > ...stuff... > > How would I know what my local port is? z/port-id appears to be the remote > port when you open one, or the local port if you specify "tcp://". > > David Logan >
