MHB FTP Port 21: Client/Host Usage & Alternatives

  • Thread starter Thread starter tmt1
  • Start date Start date
AI Thread Summary
The standard port for FTP is indeed 21, which the server uses to listen for incoming connections. The client, however, typically uses an arbitrary port number, usually in the 5000+ range, for its connection. When a connection is established, the server creates a new socket on a different port in the same range to handle the communication, ensuring that port 21 remains available for new connections. This behavior can be observed using the netstat command-line utility.
tmt1
Messages
230
Reaction score
0
I'm reading a text that is saying that the standard port for ftp is 21.

Do both the client/host use port 21? And what is the port is already being used, does it go to a different port?
 
Technology news on Phys.org
tmt said:
I'm reading a text that is saying that the standard port for ftp is 21.

Do both the client/host use port 21? And what is the port is already being used, does it go to a different port?

Hi tmt,

The server listens on port 21.
Locally the client gets assigned an arbitrary port number, usually in the 5000+ range.
When a connection is made, the server usually spawns off a new socket on a new port, also in the 5000+ range.
That way port 21 on the server remains reserved for listening to new connections.

You can see this when you run the command line utility [m]netstat[/m] with the appropriate parameters.
 
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
Back
Top