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
2
votes
1 answer

Passive FTP on Azure Worker Role through socket programming

I need to deploy a Azure Worker Role with input endpoint on port 21 so that it can accepts incoming FTP connections.so that i should be able to connect to worker role through FTP Client like Filezilla and access the azure blob storage. for this i…
Vivek Misra
  • 265
  • 4
  • 13
1
vote
4 answers

c# app FTP error : "227 Entering Passive Mode"

I can't figure this problem out I'm having at a client's site. The client has two sites and both run the same version of my app. At one site there are no problems but at the other I started to consistently get the following error when trying to…
Heckflosse_230
  • 461
  • 2
  • 9
  • 18
1
vote
1 answer

Vim: Edit files on FTP server over Passive (PASV) mode

I need to access a server using an FTP client in passive mode, but how do I do this for Vim FTP connections? Running ftp -p 12.34.56.67 works fine, but how do I do this when starting vim (for ex. vim ftp://12.34.56.78/)?
Ben
  • 759
  • 1
  • 6
  • 19
1
vote
0 answers

HTTPS traffic analysis

I'm working on a project where specifying the Operating System fingerprint of a client from the HTTPS request is a main requirement. Now for HTTP request it's easy to capture and read the header, but I'm asking what can I do to analyse the packets…
1
vote
1 answer

FTPS login succeeds but put fails

Since I lost a half day solving this, I believe this is worth sharing my issue (and solution) here. Here is my initial code: $host = ... $user = ... $pass = ... $conn = ftp_ssl_connect($host, 22); if($conn === false) { die('could not connect…
Vincent Pazeller
  • 1,448
  • 18
  • 28
1
vote
0 answers

command "dir" doesn't work with libcurl language C

I'm trying to send a "DIR" command on an ftp server with the fonction below: void cpyFileInServeur(char *src, char *dest, char *filename, serveur server) { CURL *curl; CURLcode res; struct curl_slist *header = NULL; char *userpwd =…
idir
  • 19
  • 5
1
vote
2 answers

How to debug why PHP FTP won't work in PASV mode, when console FTP seems to work fine?

I have a Docker Compose system for testing, in which I am doing end-to-end testing of a single-page web app. Several buttons in the web site will result in an FTP connection being initiated in one container (missive-transmitter), going to a test FTP…
halfer
  • 19,824
  • 17
  • 99
  • 186
1
vote
1 answer

Jmeter FTP request in passive mode

I am sending an FTP request using Jmeter. I just set the IP address and the jmeter in default send the file on port 21 and the server does not accept the file. But I want the process be passive which means the client negotiate with the server and…
Paniz
  • 594
  • 6
  • 19
1
vote
1 answer

FTP, passive mode. Can't assign requested address

I cannot to connect to data port. I am able to connect to 21 command port, send username and password. Then I send PASV\r\n. I get response and compute data port A * 256 + B = new_port. Problem is that I cannot connect to this port. For creating…
1
vote
0 answers

Which ports are used with ApacheCommons FTPClient and enterLocalPassiveMode()?

Essentially I have an issue with my Firewall causing my Application to hang when trying with storing files with FTP. I found out that it had to do with my Firewall allowing access through the ports. I set my connection port to 21( which I beileve is…
XaolingBao
  • 1,034
  • 1
  • 18
  • 34
1
vote
1 answer

Error on the remote server: 227 Entering Passive Mode(xxx,xxx,xxx,xx)

I tried to download a .bak file from the FTP and save it into a local directory in my pc. This is my code: Try My.Computer.Network.DownloadFile("ftp://nameOfServer/file.bak", "C:\Users\Admin\Documents\BackUp\file.bak", "user", "password") …
Esraa_92
  • 1,558
  • 2
  • 21
  • 48
1
vote
1 answer

How can I check when ftp_pasv must be used?

Like discussed in this question, I've a problem with ftp_fget to download a file from FTP when I'm in my local development environment : Warning: ftp_fget(): Opening BINARY mode data connection for myFile.csv As suggested, use ftp_pasv($conn_id,…
Klemart3D
  • 180
  • 9
1
vote
1 answer

Using Apache FTP server in passive mode not working ("Connection refused by server")

I have implemented an FTP server based on this here Apache project: http://mina.apache.org/ftpserver-project/index.html The server is meant to support passive mode and configured accordingly. For testing purposes, I have configured one passive port…
marw
  • 403
  • 2
  • 8
  • 17
1
vote
1 answer

Wix Burn: Launch using -passive option as default

I'm using Wix 3.8 Burn and looking for an event like OnExecuteApp. We can launch bootstrapper.exe using -passive option so that it would auto start its installation process. (Note: Type "BootStrapper.exe /?" to see other options.) Question: How can…
Farrukh Waheed
  • 2,163
  • 2
  • 29
  • 59
1
vote
0 answers

How to combine a GPS and SMS app?

I am attempting to create an app that acts passivly in the background. What I want it to do is keep track of the speed (interchangeable between MPH and KmPH based on the user's wishes) passively. When a text message comes to the device, I want it to…
jpgerb
  • 1,043
  • 1
  • 9
  • 36