RemotePort Parameter (Connect-FTP Cmdlet)
Specifies the network port used to connect to the FTP server.
Syntax
Connect-FTP -RemotePort string
Data Type
cstr
Default Value
""
Remarks
This property, together with the RemoteHost property, identifies the FTP server that the cmdlet connects to.
If this property is left unset, the cmdlet uses the default port for the selected protocol:
- FTP: 21
- FTPS (explicit): 21
- FTPS (implicit): 990
Ensure that the specified port is open and accessible from the client machine.