Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/a26f9f83/public_html/articles/includes/config.php on line 159
FTP - File Transfer Protocol Explained > NetSparsh - Viral Content you Love & Share

FTP - File Transfer Protocol Explained

File Transfer Protocol (FTP) is a protocol that is part of the TCP/IP suite. It is the standard for transferring large amounts of data from server to server and from servers to clients. There is a very good chance that you have downloaded files from FTP sites many times, though it may have seemed you were only downloading from a website. FTP allows you to transfer files over a variety of hosts with different operating systems and file systems. There are so many FTP servers on the Internet, some are private with secure logon names, other ones are public with anonymous logins.

This paper will give a very brief outline of how the FTP Protocol functions and give the basic commands used during an FTP session. Keep in mind that these commands are generally automatic and are executed by either an FTP Client application, or done via your web browser. Though these methods are generally quicker than manually connecting to an FTP, it doesn't mean we should ignore the background behind how the technology works.

The FTP Protocol uses two connections to transfer a file. Each of these connections is quite a bit different, but work in conjunction with each other. The first connection is the Control Connection, which as the name implies controls the connection in regards to initiating the data streams and executing the commands. The second type of connection is the Data Connection, this connection is the actual connection that passes the files back and forth between the client and server.

Control Connection:
The control connection starts in a normal client / server manner. The client does an active open connection to port 21 of the FTP server to establish the control connection. The server is listening on port 21 for any active queries. Please keep in mind that though the primary FTP port is designated as porn 21, many servers, especially private ones are running on non-standard ports. The control connection as I mentioned early is the connection that allows you to pass commands between the client and server. Commands that must be sent are ones like LIST, STOR, and RETR. Once you enter a command on the control connection, you initiate the data connection.

Data Connection:
The data connection is spawned each time a file is moved between the client and server. The Control connection initiates the transfer with the PORT command, this tells the server to open an active connection to the clients passive port. The port command is typically the IP address followed by a 16 bit port number. The PORT command is issued in the following fashion:

PORT 24,82,116,92,4,150

That command should spawn a response of: 200 PORT Command Successful

After the PORT command has been initiated and is successful the next command in the data connection will be issued from the control connection. As I mentioned before this is typically a LIST, RERT or STOR. I will outline the basic FTP commands below for reference.

FTP Commands (Basic):
ABOR - Abort command and any data transfers
LIST - List the directory contents
PASS password - Used during authentication of login
USER username - Used during authentication of login
QUIT - Logoff / Quit session
RETR filename - Retrieve file from server STOR filename - Send a file to the server
SYST - Show System information
TYPE - Set the type of data, for instance ASCII
PORT - n1,n2,n3,n4,n5,n6 ( 1-4 = ip address, 5-6 port data)
HELP - Will give you additional available commands and more information

Reply Codes:
Reply codes are simply confirmations of things happening. One example of a reply code was went we got "200 PORT Command Successful" there are a handful of other reply codes, though generally the main ones are as follows.

125: Data Connection Open Start Transfer
200: Command OK
221: Goodbye / Terminate Connection
252: Write Error
331: Username OK, Enter Password
425: Can't Open Data Connection
500: Syntax Error on Command
501: Syntax Error on Arguments

Client Applications:
There are many different clients for FTP, and really it's up to personal taste in the end. A couple of the major ones are CuteFTP and FlashFXP. Personally I use FlashFXP when I'm in the Windows Environment. Just go to a freeware website or search on the search engines for a FTP Client and try a few out!

Summary of FTP:
The File Transfer Protocol is a wonderful and useful standard that has helped move data around the world safely and reliably for years. Everyone uses it from uploading their website to their web server, backing up their data to an off-site location, sharing their pictures with friends, or disseminating large data files for scientific research!

For even more information on the FTP, check out RFC 959.

Ken Dennis
http://KenDennis-RSS.homeip.net/

In The News:

This RSS feed URL is deprecated, please update. New URLs can be found in the footers at https://news.google.com/news

New York Times

Apple Watch Series 4 Review: Faster, Bigger, With a Promise to Be Healthier
New York Times
Sections. SEARCH. Skip to contentSkip to site index. Personal Tech · Subscribe · Log In · SubscribeLog In · Today's Paper. Advertisement. Supported by. tech fix. Apple Watch Series 4 Review: Faster, Bigger, With a Promise to Be Healthier. The faster ...
What the Surge in Apple Watch Popularity Says About Our CultureThe Mac Observer
Review: Apple Watch Series 4TechCrunch
A Week On The Wrist Apple Watch Series 4HODINKEE
USA TODAY -IMDb
all 350 news articles »

Chinese personal finance tech company X Financial prices IPO at $9.50 a share
MarketWatch
X Financial XYF, -20.20% priced its initial public offering at $9.50 per American Depositary Share on Wednesday, selling 11 million shares to raise $104.5 million, The Chinese tech-driven personal finance company is listing on the New York Stock Exchange.

and more »

New York Times

Windows on How Cities Change Can Be All Too Captivating - The ...
New York Times
Technology is crowding curbs with ride hailers and keeping homeowners fixated on housing values. Here are the tools that Emily Badger, a writer for The ...

and more »

WFXL FOX 31

Albany Tech faculty and staff participate in personal development training
WFXL FOX 31
The Professional Development Institute, done twice a year, is a chance for the Albany Tech leadership team to get together and learn new techniques. According to Dean of Academic Affairs Lisa Harrell, faculty and staff are learning new classroom ...


New York Times

The iPhone XS and XS Max Review: Bigger Is Now Definitely Better
New York Times
For the past few years, I have been a naysayer on one feature of smartphones: their growing size. My position was unusual given the increasing prevalence of larger screen devices. The world's top phone makers have all added more substantial glass ...
'An evolution, not a revolution': Apple's new iPhones score only slightly above the X in reviewsFinancial Post
iPhone XS and XS Max review: Apple's beautiful big-screen beasts exact a small ransomUSA TODAY
Apple iPhone XS and XS Max review: smoothed outThe Verge

all 1,236 news articles »

New York Times

When Cryptocurrencies Fluctuate, He Uses These Tech Tools to Keep Track
New York Times
How do New York Times journalists use technology in their jobs and in their personal lives? Nathaniel Popper, who covers cryptocurrencies and financial technology for The Times from San Francisco, discussed the tech he's using. There are many ...


Washington Post

Apple designer Jony Ive is 'zealous' over the tech giant's most personal device
Washington Post
“Apple's inception was about making tech useful and relevant, in a very personal way. And the watch is unambiguously the most personal product we make,” said Ive, who joined Apple more than 25 years ago and first made his mark with the candy-colored ...
$2000 iPhone — gulp. We break down the features and price points of Apple's new lineRegina Leader-Post

all 736 news articles »

NBCNews.com

Lawmaker says US Senate staff targeted by state-backed hackers
NBCNews.com
Foreign government hackers continue to target the personal accounts of U.S. senators and their aides — and the Senate's security office has refused to defend them, a lawmaker says. Sen. Ron Wyden, an Oregon Democrat, said in a Wednesday letter to ...

and more »

New York Times

Help a Fellow Mac User With Remote Tech Support
New York Times
Q. If Windows comes with tools to help someone take control and troubleshoot another PC over the internet, what does Apple provide for long-distance Mac-to-Mac support? A. Apple includes several ways to see and control the screen of another Mac over a ...
Prepare for changes to Back to My Mac - Apple SupportApple Support

all 24 news articles »

New York Times

Managing Manterruptions and Her Dog's Instagram
New York Times
How do New York Times journalists use technology in their jobs and in their personal lives? Jessica Bennett, gender editor for The Times, discussed the tech she's using. Before you joined The Times, you were a freelancer. What was your tech setup to ...

Google News

How To Remove One Operating System from a Dual Boot Windows XP Computer

In Windows Xp, you can install two operating systems on... Read More

Your Home is in Your Hands

I would like to tell you about a magic home.... Read More

Basic Computer Thermodynamics

That desk in front of you and everything else around... Read More

Troubleshooting Computer Freeze (Lockup) Problems

How familiar does the following sound? Your computer was working... Read More

How Do MP3 Players Work? Digital Audio Technology Revolutionizes Music Enjoyment

Millions have enjoyed recorded music since 1877 when Thomas Edison... Read More

Cisco Certification: Building Your Home Lab, Part II

In the first part of this home lab tutorial, CCNA... Read More

This Page Cannot Be Displayed ? What to Do When Your Internet Breaks

The DNS (Domain Name System) servers are what your computer... Read More

How To Safeguard Your Computer?

The following practice, if done regularly, may help you to... Read More

Computer Viruses are Bad Luck

OK, so you caught a computer virus and your system... Read More

Maintain Your Computer ? Keep Your Business Running

Maintaining your computer is extremely important ? especially if you... Read More

USB Drives - What to Look For in a USB Device

Those small USB drives have so many names, pocket drives,... Read More

Nephrology and Dialysis For a PDA

Saving Lives With A Pocket PCFree medical downloads can be... Read More

Temporary Fixes to Spyware, Ad-ware, and Virus Infections

So you've got some spyware, ad-ware, or viruses on your... Read More

Dynamite Comes in Small Packages - Tiny Personal Audio MP3 Players Pack Powerful Music Enjoyment

MP3 players are Hot! Playing music has come a long... Read More

Quick System Restore with ASR Backups

ASR (Automated System Recovery) is a feature available on the... Read More

A Tale of Two Regeds

Tech support tells me to type 'regedt32' as opposed to... Read More

Portable Technology: Getting to Know the Treo

Up until the recent past, those who wanted to take... Read More

How To Buy An MP3 Player

Are you looking for an MP3 player but am not... Read More

Apache, MySQL & PHP for Windows

Apache, MysQL and PHP for Windows could be a nice... Read More

Tips For Finding Great Deals On Computer Accessories & Supplies

Tip #1. Do a Google search. Don't be to general... Read More

5 Simple Ways To Increase Your Computer Speed & Help Your Computer Run More Efficiently!

If you're a computer expert, you'll probably already know about... Read More

Buying A PC Flat Screen Monitor

For six years, my Samsung PC 13.8 inch SyncMaster conventional... Read More

What Has A Portable MP3 Player Have To Do With Your Business

Plenty! When we made the decision to be our own... Read More

Digital Cameras: How Many Pixels Do I Need?

With the bewildering number of digital cameras on the market,... Read More

How To Become A True CCNA

I've worked my way from the CCNA to the CCIE,... Read More