cURL / Mailing Lists / curl-users / Single Mail


tftp+ --local-port ==Error

From: Rinnewitz, Kim Oliver <>
Date: Thu, 4 Oct 2007 00:19:56 +0200


I am trying to upload a file to a tftp-Server with the --local-port option set:

curl --local-port 34444 -T /home/kim/test.txt t

and I get:

curl: (7) bind() failed; Invalid argument

This looks like a bug to me. It also happens, if I specify a port range (i.e. curl --local-port 34444-34449 -T /home/kim/test.txt t

When I leave out the --local-port option
(i.e. curl -T /home/kim/test.txt t, it

It would be great if this gets fixed because I need the possibility to set the local port manually.

My Version-Info:

Kernel (I am on Ubuntu 7.04):
kim_at_kim:~$ uname -a
Linux kim 2.6.20-16-generic #2 SMP Sun Sep 23 19:50:39 UTC 2007 i686 GNU/Linux

kim_at_kim:~$ curl --version
curl 7.17.0 (i686-pc-linux-gnu) libcurl/7.17.0 zlib/1.2.3
Protocols: tftp ftp telnet dict http file
Features: IPv6 Largefile libz


Received on 2007-10-04