Using any protocol to transfer files on web.For example when a client is sending a request to www.google.com, the requested page will be given to the client, in this case he/she did not use a port numbr wen writing. So my question is that why we do not specify a port number when sending request?

  • What do you mean by "the client"? If you mean a webbrowser, that does connect to a port number: a known port for HTTP or HTTPS (80/443). If you mean something else, you really need to be more on what you're asking.
    – Teun Vink
    Jun 26, 2015 at 9:33
  • Ok. In web development, can u suggest why the port can not be specifiied when sendind a request to the web browser? Jun 26, 2015 at 10:08
  • You're still not making much sense here. Who sends what request to a webbrowser?
    – Teun Vink
    Jun 26, 2015 at 10:11
  • FYI related: serverfault.com/questions/313439/… Jun 26, 2015 at 10:31
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer.
    – Ron Maupin
    Aug 11, 2017 at 18:31

1 Answer 1


Actually the port can be specified.

However, there are some standard ports 80 => HTTP 443 => HTTPS

When you don't enter anything into your browser (eg. http://www.google.com) your browser is really requesting (http://www.google.com:80) - the port number is just implied. Likewise, when you view https://www.google.com your browser is really making a request to https://www.google.com:443

  • Exactly. You can specify port in connection. You can for example telnet to port 25 (SMTP). Jun 27, 2015 at 3:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.