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