Reputation: 4346
My doubt is that - a port is just logical, so why such restriction ? Why can't I have a port of 9924593 or something like that ?
Upvotes: 16
Views: 11874
Reputation: 28336
Look at the packet format for the TCP segment. The port identifiers are unsigned 16-bit integers, meaning that the largest number you can put in there is 216-1 = 65535.
Upvotes: 36