why HTTP has single port as compared to ports of FTP?
Because with ftp, one is used for control and the other data transfer. Just think of it as a single port because that's how it behaves. Just FYI, if you had googled for "ftp port number" and done a little reading, you could have easily discovered this answer all on your own and saved us some time and effort.
Remember, Google is your friend
It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.***William Henley***
Your premise is incorrect. FTP also has only one standard port.
so why http have?
I'm sorry, but your question doen't make sense. Both HTTP and FTP use one standard port. But either can be bound to other ports if you wish. The same is true of most (but not all) Internet protocols.
i mean http has only one port 80 but ftp having 2 ports 20 and 21 why?
Because with ftp, one is used for control and the other data transfer. Just think of it as a single port because that's how it behaves. Just FYI, if you had googled for "ftp port number" and done a little reading, you could have easily discovered this answer all on your own and saved us some time and effort.
Remember, Google is your friend
It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.***William Henley***
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |