• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 Long: ftp-port
2 Arg: <address>
3 Help: Use PORT instead of PASV
4 Short: P
5 Protocols: FTP
6 See-also: ftp-pasv disable-eprt
7 Category: ftp
8 ---
9 Reverses the default initiator/listener roles when connecting with FTP. This
10 option makes curl use active mode. curl then tells the server to connect back
11 to the client's specified address and port, while passive mode asks the server
12 to setup an IP address and port for it to connect to. <address> should be one
13 of:
14 .RS
15 .IP interface
16 e.g. "eth0" to specify which interface's IP address you want to use (Unix only)
17 .IP "IP address"
18 e.g. "192.168.10.1" to specify the exact IP address
19 .IP "host name"
20 e.g. "my.host.domain" to specify the machine
21 .IP "-"
22 make curl pick the same IP address that is already used for the control
23 connection
24 .RE
25 
26 If this option is used several times, the last one will be used. Disable the
27 use of PORT with --ftp-pasv. Disable the attempt to use the EPRT command
28 instead of PORT by using --disable-eprt. EPRT is really PORT++.
29 
30 Since 7.19.5, you can append \&":[start]-[end]\&" to the right of the address,
31 to tell curl what TCP port range to use. That means you specify a port range,
32 from a lower to a higher number. A single number works as well, but do note
33 that it increases the risk of failure since the port may not be available.
34