IP Addresses, Transport Ports, and Services
A transport port helps distinguish endpoints on a host under a transport protocol. Address, port, and protocol all affect the destination.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace two listeners
A host can expose one service on TCP port 8000 and another on TCP port 9000. Sending to the same IP with a different port can reach different code. Client and server roles identify which endpoint initiates the exchange.
Keep protocol separate
A UDP endpoint with the same numeric port as a TCP endpoint belongs to a different transport. UDP and TCP choices describe their distinct delivery models.[1][2]
Use both address and port to describe a listener
On a toy host, a catalogue can listen on TCP port 8000 while a preview service listens on 8001. Requests to the same IP address can reach distinct listeners because the transport port differs. Whether the protocol's content matches expectations requires a separate check. See client and server roles.
Destination address: 192.0.2.10 in this example
TCP destination port 8000 → catalogue listener
TCP destination port 8001 → preview listener
Address alone does not select between them
Include protocol and binding scope in the description
A listener can bind only to loopback or to a particular interface. TCP and UDP ports are associated with different transports. Test from the client location allowed by the service contract.