cURL / Mailing Lists / curl-users / Single Mail

curl-users

Curl - FTP wilt --local-port option

From: P Chaitra-A15829 <chaitra_at_motorola.com>
Date: Wed, 22 Jul 2009 03:27:14 +0800

Hi,

We are trying to use curl (version 7.19.2) for FTP with --local-port
option but it is not working. It fails with the following error. I
checked on the web for similar posting but found the answer as its been
fixed. But it is not working with this version atleast. I think the
latest version is 7.19.4 and I checked the fixes in that release but
found nothing related to local port issue so assumed that its been fixed
in the prior releases itself. We are blocked in our project due to this.
Appreciate if someone can let us know if it works .. Even with range of
local-ports option we get the same error...

Kindly help.
Thanks
Chaitra

curl --local-port 12555 ftp://192.2.84.29//disk1/home/xyz/abc.c -v -o
CH1 --user xyz1:zzz
* About to connect() to 192.2.84.29 port 21 (#0)
* Trying 192.2.84.29... Local port: 12555
* connected
* Connected to 192.2.84.29 (192.2.84.29) port 21 (#0)
< 220- Welcome user from bhairavi
< 220-
< 220 192.2.84.29 FTP server (SunOS 5.8) ready.
> USER xyz1
< 331 Password required for xyz1.
> PASS zzz
< 230 User accent1 logged in.
> PWD
< 257 "/disk1/home/xyz" is current directory.
* Entry path is '/disk1/home/xyz'
> CWD /disk1
< 250 CWD command successful.
> CWD home
< 250 CWD command successful.
> CWD accent1
< 250 CWD command successful.
> EPSV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||64645|)
* Trying 192.2.84.29... bind failed with errno 98: Address already in
use
* couldn't connect to host
* got positive EPSV response, but can't connect. Disabling EPSV
> PASV
< 227 Entering Passive Mode (192,2,84,29,252,134)
* Trying 192.2.84.29... bind failed with errno 98: Address already in
use
* couldn't connect to host
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0* Closing connection #0

curl: (7) bind failed with errno 98: Address already in use

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-07-21