Outbound port on sockets

Bryan Olson fakeaddress at nowhere.org
Thu Sep 14 17:43:16 EDT 2006


Diez B. Roggisch wrote:
> bmearns schrieb:
>> Is it possible to specify which port to use as the outbound port on a
>> connection? 
[...]
>> Specifically, I'm trying to write an FTP host, and I'm trying to
>> implement the PORT command. 
> 
> AFAIK you neither can't do that nor need it.

It's not the issue here, but to specify the outgoing port
call bind(('', portnum)) before connect().


-- 
--Bryan



More information about the Python-list mailing list