does ftp need tcp or udp?
- User
does ftp need tcp or udp?
- Assistant
FTP (File Transfer Protocol) primarily uses TCP (Transmission Control Protocol) for its operations. It relies on TCP for its two connections: the command connection and the data connection. TCP is chosen because it provides reliable, ordered, and error-checked delivery of data, which is essential for file transfers to ensure data integrity.
FTP typically operates using two ports:
- Port 21: Used for sending commands from the client to the server (control connection).
- Port 20: Used for transferring data from the server to the client (data connection), though in active mode FTP.
In passive mode, the server opens a random port that the client connects to for data transfer, but this connection also uses TCP.
- User
im using ufw, and having connection issues. do i need to allow in? im allow out port 21/tcp
- Assistant
When using UFW (Uncomplicated Firewall) and setting up FTP, it's important to understand how FTP establishes connections to configure the firewall appropriately. Simply allowing outbound traffic on port 21/tcp might not be sufficient, especially if you are running an FTP server or if clients are having trouble with data connections.
Here's a step-by-step guide:
-
FTP Control Connection (Port 21):
-
- User
im strugging with setting up yii2 within hostinger, they seem todo something slightly odd with their directorys..
- Assistant
- User
how should I do the htaccess
- Assistant