cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: IPv6 FTP PASV problems

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 28 Aug 2007 15:31:12 +0200 (CEST)

On Tue, 28 Aug 2007, balson_at_comcast.net wrote:

> Hello. I am having IPv6 related problems with FTP that seem to revolve
> around the use of PASV. The problem is that I don't know how to turn of PASV
> as there doesn't seem to be a CURPOPT for it. Here's the error we are
> getting:
>
> < 230-User guest has group access to: guest
> < 230 OK. Current directory is /home/guest
>> PWD
> < 257 "/home/guest" is your current location
> * Entry path is '/home/guest'
>> CWD incoming
> < 250 OK. Current directory is /home/guest/incoming
>> EPSV
> * Connect data stream passively
> < 425 All reserved TCP ports are busy
> * disabling EPSV usage

Now this is almost amusing! "All reserved TCP ports are busy" !!

>> PASV
> < 425 You cannot use PASV on IPv6 connections. Use EPSV instead.

Yeps, PASV doesn't work for IPv6 so in fact even trying to use it is silly...

> Anyone know how to turn off the PASV?

You need to enforce the use of PORT/EPRT with CURLOPT_FTPPORT:
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTFTPPORT

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