If I request do browsers try a specific port?
Perhaps people set the default port server side? Or must ports be specified (eg. )?
I'm trying to make it as simple as I can for a client to connect to a locally hosted "remote controller" website.
42 Answers
If I request do browsers try a specific port?
There are three well known ports commonly used by web servers:
Port 80: for HTTP.
Port 8080 is often used as an alternative to port 80, for applications such as Apache Tomcat and Atlassian JIRA.
Port 443: for HTTPS.
You can, of course configure your local web server to use whatever ports you like.
Further Reading
4- Default HTTP Port: 80
- Default HTTPS Port: 443
Following is some of the recommended localhost ports for local developments.
- Recommended
Express.js(orLoopBack) Dev Port: 3000, 8000, 8080 (bynpm start) - Default
AngularWebpack Dev Port: 4200 (byng serve) - Default
IonicWebpack Dev Port: 8100, 8200 (byionic serveorionic lab)
...
1List of Well-Known Ports Port numbers range from 0 to 65535, but only port numbers 0 to 1023 are reserved for privileged services and designated as well-known ports. The following list of well-known port numbers specifies the port used by the server process as its contact port.
Well-known ports range from 0 through 1023. Registered ports are 1024 to 49151. Dynamic ports (also called private ports) are 49152 to 65535.