Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There 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.)



You 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)


Conventions are defaults. Every browser I have assumes port 80 (or 443) for http (or https) by default for a reason.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: