I was wondering where can I access the IANA registry?
Is it implemented in the OS?
How do applications know which port to connect to, to be exact where to compare the port numbers?
Some apps have the port numbers hardcoded and some have you input it, but where exactly is the comparison done?
Or is it all human based and is it on the devs to use port 80 when they know they will be connecting to a http server?
I can't get my head around this, because there are well known ports, which you can't use for your apps. Or can you? Is the port free to use when no process binds it? So I could use port 80, 25, 443 or whatever under 1000 and all I would need for that is root privileges?