Questions tagged [passive-mode]

FTP and FTPS use multiple connections to perform file transfers. In passive mode (a.k.a. PASV), both control and data connections are made from the FTP client to the FTP server.

FTP may run in active or passive mode, which determines how the data connection is established.

In both cases, the client creates a TCP control connection from a random unprivileged port N to the FTP server command port 21. In active modes, the client starts listening for incoming data connections on port N+1 from the server (the client sends the FTP command PORT or EPRT to inform the server on which port it is listening).

In situations where the client is behind a firewall and unable to accept incoming TCP connections, passive mode may be used.

In this mode, the client uses the control connection to send a PASV or EPSV command to the server and then receives a server server port number from the server, which the client then uses to open a data connection from an arbitrary client port to the server IP address and server port number received.

See What is the difference between active and passive FTP?

59 questions
1
vote
1 answer

Passive FTP Timeout while using WinINet

I'm trying to ftp a file using passive ftp but I get a timeout (12002) when the put command is called. I'm able to use passive ftp with other ftp sites but not this new one. I've tried this using three different ways on the same…
Kristina
  • 11
  • 1
  • 2
1
vote
0 answers

Passive FTP connection using Batch Script

I wrote a batch script to upload files to FTP server. It works fine but I wanted to establish passive connection to the FTP server. Most of the articles say command line FTP.exe does not have this feature but one blog says using QUOTE PASV will set…
dgk
  • 11
  • 3
1
vote
1 answer

PassivePortRange problem in IIS6 (FTP)

I'm trying to specify the passive port range for an ftp server running on IIS6 in Windows Server 2003. I've used: adsutil.vbs set /MSFTPSVC/PassivePortRange "5500-5600" I've checked in the metabas file and the changes are applied to it. I can also…
John
  • 5,672
  • 7
  • 34
  • 52
0
votes
0 answers

Scripting for 'passive mode' or 'screen saver mode'

Many games separate the level design and story line design from development by attaching scripts to objects within the game world. I am looking to do something similar, albeit not in a game, to control the 'passive mode' or 'screen saver' mode of an…
bguiz
  • 27,371
  • 47
  • 154
  • 243
0
votes
1 answer

Simple FTP client in Java can send the "list" command just once in passive mode

I still have some problems regarding the FTP session between my simple FTP client written in Java and a proFTP server. I have connected to the server using passive mode. When I send the list command I get a response in ASCII of which files that…
Rox
  • 2,647
  • 15
  • 50
  • 85
0
votes
1 answer

Check the passive port in Spring Integretion FTP

https://medium.com/nerd-for-tech/retrieving-files-from-ftp-server-using-spring-integration-5ccc4a972eaf I'm implementing FTP behavior based on the above site. In the above site, I've only added passive mode to the ftp settings. @Bean public…
anna
  • 1
  • 1
0
votes
1 answer

How to get ftp_nlist() php function working?

I want to list files (log files in .txt) in a directory from a server and I can't get ftp_nlist() function working. First, the function ftp_nlist() was returning false, I have searched on the internet and found that the passive mode must be enabled…
Lucas Damase
  • 83
  • 1
  • 2
  • 10
0
votes
0 answers

FTP client receives wrong port from server

I'm writing an FTP client from scratch and have trouble opening a PASV connection. The server seems to send the right port, but the client receives a different raw string and subsequently cannot connect. This is the server log…
mafu
  • 31,798
  • 42
  • 154
  • 247
0
votes
1 answer

VFS: URL parameter transport.vfs.passive not working in WSO2 EI 6.2.0

Good morning I have a proxy service that read file from a FTP that require passive move. In WSO2 EI 6.1.0, I was able to enable passive mode via URL parameter ?transport.vfs.passive=true and it worked without problem. In WSO2 EI 6.2.0, the same…
0
votes
1 answer

WinInet FTP switch Passive to Active mode while connected?

I use WinInet to connect to an FTP server. I use FtpCommand() to send a "PASV" command to switch from Active to Passive mode. I am now searching for the opposite command to switch from Passive to Active mode. Does anyone know how to do this?
Vas
  • 75
  • 9
0
votes
2 answers

PhpStorm 2017.1.3 Passive Mode

I'm using PhpStorm to edit files on a live server. When I try to upload the file it tells me "could not close the output stream for file". Note that I'm using "SFTP" .. Some suggesting that using "passive mode" will solve the issue, but I can't find…
0
votes
1 answer

C - Cannot connect passive mode in FTP client

I am coding a ftp client. I have the control channel working because I can do commands like CWD, PASV, USER or PASSWORD. The problem is when i want to open the data channel to do for example LIST (ls). For this I try to open another connection to…
Lenin
  • 500
  • 3
  • 11
0
votes
1 answer

FTP server running on Port 2000 over NAT not working on Passive Mode

I am running FILE-Zilla ftp server on windows in one of the LAN pc connect to my router. i am trying to access the FTP server from the network outside of the router using Router WAN ip (WAN-to-LAN) by adding Port-Forwarding rule (NAT) in the router.…
Amit Shah
  • 7,771
  • 5
  • 39
  • 55
0
votes
1 answer

Problems to transfer files using FTP Apache Java implementation

I'm transferring files using FTP with JAVA. I'm using FTPClient and FTPServer from Apache. But in a specific environment, sometimes the file isn't transferred. I call the enterLocalPassiveMode method from FTPClient before the login method call and…
Fagner Fonseca
  • 293
  • 1
  • 4
  • 15
0
votes
2 answers

FTP upload fails on one server on passive mode

I'm having a problem with my C# FTP upload script and my new file server. The scrip I use for uploading works fine on my old file server, but throws: System.Net.WebException: Cannot open passive data connection when I try to upload data. …
ffyhlkain
  • 57
  • 1
  • 8