cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Bind to a specific source port?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 19 Aug 2005 17:05:44 +0200 (CEST)

On Fri, 19 Aug 2005, Doug McNutt wrote:

>> Neither does the library. You can make it bind the local connection end to
>> a specific IP address, but that's it.
>
> Does that explain why I wasn't able to upload to a correspondent's ftp area
> with a command line like this?
>
> curl ftp://name:password@ftp.user.domain:1234 -T myfile

I don't see why. Does your firewall setup restrict your outgoing connections
based on the source port?

> I really thought at the time that the problem was on the other end and,
> after opening up ports that curl seemed to want that way for PASV, I handled
> the transfer via my own ftp site. Now I wonder. . .

FTP through firewalls is often a problem due to the double connection the
protocol requires, and it takes some knowledge and fiddling to get it right at
times.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-08-19