TCP Ports

Why we use ports?

TCP uses port numbers are used to identify sending and receiving applications on different hosts. Each side of the connection assign 16-bit unsigned port number to the application. arriving TCP data can be sorted to a specific TCP connection by its socket, that is, the combination of the source address and port and destination address and port

Why we need so many ports?

The server computer can provide several different service simultaneously and client computer can use several application to connect to one service. The ports helps TCP to channel traffic to decide application How do I know which port is associated with which application? Port numbers are categorized into three basic categories: well-known, registered, and dynamic/private. The well-known ports are assigned by the Internet Assigned Numbers Authority (IANA)

Simulation

this simulation present 5 different well-known port numbers. Use our simulated client to connect your application to one of the ports

osischool.com

Embedding:

Do not change the code.