aspose file tools*
The moose likes Linux / UNIX and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark ""200 PORT command successful. Consider using PASV." What does it mean?" Watch ""200 PORT command successful. Consider using PASV." What does it mean?" New topic
Author

"200 PORT command successful. Consider using PASV." What does it mean?

minal silimkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 133
I am trying to connect to redhat 4 from windows machine using ftp. I got the message "230 Login successful.". Then I try ls, dir commands, there I got the message as follows

ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
226 Directory send OK.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
226 Directory send OK.


What does it mean?


Minal Silimkar
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13880
    
  10

I guess your question is specifically about "Consider using PASV". It asks you to use passive FTP mode. You can enable it by simply typing the command "passive" in the FTP progam. For example:


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
minal silimkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 133
I wanted to list all the files, but it shows the message as shown above. As you suggested, I gave command "passive". It shows invalid command. What I can do to copy data from unix machine to windows machine using ftp.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

Passive is an option, not a requirement. I think the common Linux FTP servers all support passive mode these days. I thought Windows FTP clients did, too, unless you're running an old client.

I believe Passive FTP requires some extra firewall configuration because it makes freer use of network ports, but you're better off googling for "passive ftp iptables" or something if you want an answer by somebody who actually knows.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

minal --

By the way, are you sure that the directory you're listing actually has any files in it?


[Jess in Action][AskingGoodQuestions]
minal silimkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 133
Thank Ernest for pointing my mistake. Directory was empty. Now I am getting right results.

Thanks Jesper Young and Tim Holloway for giving valuable information about "Passive FTP".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "200 PORT command successful. Consider using PASV." What does it mean?
 
Similar Threads
Sensitive Information in logs/ console while FTP
Data Port Issue
Slew of null pointer exceptions.
Uploaded image gets corrupt (Jakarta Commons Net)
File transfer using FTP