Why do we need to specify a port number while using HTTP protocol?

前端 未结 2 655
闹比i
闹比i 2021-02-05 22:01

Why do we need to specify a port number with an IP address even if we are using HTTP protocol? For example - http://xyz:8080... - what does this even mean? We alrea

2条回答
  •  执念已碎
    2021-02-05 22:49

    A port is like a "channel" in a way... If you have to access different functions of the same website, you use different ports. HTTP is port 80, HTTPS is 443, SSH is 22, and so on.

提交回复
热议问题