4 ms·
No convention at all, just FTP defaulting to 21 and SSH to 22 and websites to 80 randomly.
by rob 3y ago
No convention at all, just FTP defaulting to 21 and SSH to 22 and websites to 80 randomly.
- otabdeveloper4 3y agoThere is no Internet Police that will give a fine for using the 'wrong' ports. (In fact, not running SSH on port 22 is an industry best practice in 2024, sadly.)
- jraph 3y agoYou are thinking of a law, not a convention. A convention is a common language. It is something you have the right to break when needed / suitable but which is otherwise nice to follow when interacting with others. Such conventions allow you to omit the port when typing a URL in a browser for instance. They allow taking nice shortcuts and avoiding verbose / irrelevant technical details. (now, some conventions are mandated by laws indeed. For instance, if you are setting up electricity somewhere, you'd better use the right colors. One might argue that we ought to call such things rules)
- hughesjj 3y agoConventions are defaults. Every browser I have assumes port 80 (or 443) for http (or https) by default for a reason.