FS port

tho

Member
Mar 24, 2004
52
0
0
Im abit confused with the port number allocation. If i have FS(file server) and have two telnet clients c1 and c2, connecting to it, what will be source and destination port for client s1 and client s2. From memory, only telnet server allows connection through port 23. This means that the destination port for s1 and s2 cannot be port 23 because they are only clients.

any help would be highly and greatly appreciated :)
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
The destination port is 23 for both clients. The source port should be different for each one, and should be a random port between 1024 and ~65535.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Because 23 is the official telnet port. 80 is the standard port for http. If a site you have never heard of is running a webserver on a different port, how will you know about it? You probably wouldn't, so there are standards.

The server will be able to differentiate between the clients based on ip addresses, and an identification number included in the packets.