Is there a default port that is requested by web browsers?

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.

4

2 Answers

If I request do browsers try a specific port?

There are three well known ports commonly used by web servers:

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(or LoopBack ) Dev Port: 3000, 8000, 8080 (by npm start)
  • Default Angular Webpack Dev Port: 4200 (by ng serve)
  • Default Ionic Webpack Dev Port: 8100, 8200 (by ionic serve or ionic lab)

...

List 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.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like