Hacker News new | ask | show | jobs
by withinboredom 485 days ago
Ports are tied to the protocol. IP layer doesn’t have ports (it’s in the name).
2 comments

I've been trying for a few minutes to figure out what you mean by "it's in the name"... What about Internet Protocol implies that ports are not an inherent property of it?

All I can think of is that an "IP address" does not have a port component and that's all that IP deals with.

yep. That is exactly it. The IP layer is specifically a map with destination ip address and source ip address. The port is not included.
It's not like "Ports" are in the name of UDP or TCP, either.