Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
File Transfer Protocol
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===NAT and firewall traversal=== FTP normally transfers data by having the server connect back to the client, after the PORT command is sent by the client. This is problematic for both [[Network address translation|NATs]] and firewalls, which do not allow connections from the Internet towards internal hosts.<ref name="ncftp">{{cite web |last=Gleason |first=Mike |year=2005 |title=The File Transfer Protocol and Your Firewall/NAT |url=https://www.ncftp.com/ncftpd/doc/misc/ftp_and_firewalls.html |publisher=Ncftp.com}}</ref> For NATs, an additional complication is that the representation of the IP addresses and port number in the PORT command refer to the internal host's IP address and port, rather than the public IP address and port of the NAT. There are two approaches to solve this problem. One is that the FTP client and FTP server use the PASV command, which causes the data connection to be established from the FTP client to the server.<ref name="ncftp" /> This is widely used by modern FTP clients. Another approach is for the NAT to alter the values of the PORT command, using an [[application-level gateway]] for this purpose.<ref name="ncftp" /> [[File:FTP model.png|thumb|A model chart of how FTP works]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)