Press "Enter" to skip to content

Why does FTP passive mode use a range of ephemeral ports as opposed to a single well known port? [closed]

Last updated on September 7, 2023

        In FTP passive mode, I read that the server sends a random port number to the client where it can establish a data channel.<br>

Then client establishes a data channel from its random port number to this port number sent by the server.

My question is why does the server send a random port number to the client? Why can’t the client directly establish a data channel to port number 20 on the server side?

Be First to Comment

Leave a Reply