Java Glossary : FTP

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : F words : FTP.

FTP
File Transfer Protocol. A protocol built on top of TCP/IP that lets you send or receive a file over the Internet. The url for a file has this form: ftp://username:password@hostname/pub/mydir. FTP works better than HTTP because it can pick up where it left off if the connection is broken. HTTP in theory has this feature as well, but it is more frequently implemented in FTP. If you simply want to download or copy a file, you can use HTTP which is faster and simpler.

Always use PASV mode, the newer style of FTP where the client sets up both the uplink and downlink. This is more secure than the old style when the server set up the downlink. Further, it is easier to tunnel through firewalls with PASV. The only time not to use it is if you have some very old server that does not support it.

If you are setting up an FTP server, you will have to tell your firewall/router to forward ports 20 and 21 for FTP and 2000..2010 for PASV to your FTP server.

If your FTP session aborts, the server may lock the file you were working until the session times out. The server can't tell the session was aborted. Until the timeout expires, you won't be able to update or rename that file in a new session.


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 4147.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/ftp.html J:\mindprod\jgloss\ftp.html