网络管理员可以更改http的默认端口吗 [英] Can network admin change the default port for http

查看:75
本文介绍了网络管理员可以更改http的默认端口吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我回答了以下 http://www.example.com 没有端口,表示它在端口80上运行.

I gave an answer to following thread. but in the comment a user suggested that network admin can change the default port of http from 80 to something else. As for as I know if I open a page eg. http://www.example.com without port that means it is running on port 80.

我只想澄清一下,网络管理员可以更改默认端口吗?

I just want to clarify that is it possible for network admin to change default port?

推荐答案

使用浏览器时, http://www.example.com 将始终尝试连接到服务器的TCP端口80,就像HTTPS连接的端口443一样.这些端口号(在此处)在任何浏览器中都经过硬编码.

When using a browser, http://www.example.com will always try and connect to the server's TCP port 80, like it's port 443 for HTTPS connections. These port numbers (defined here) are hard coded in any browser.

但是,可以将Web服务器配置为侦听任何其他端口,但这几乎没有任何意义.如果是这样,则浏览器将无法连接(除非在 http://myserver.com中明确指定了端口号:81 ).

Yet a web server can be configured to listen to any other port, which rarely makes sense though. If it does, the browser will be unable to connect (unless the port no. is explicitly given as in http://myserver.com:81).

这篇关于网络管理员可以更改http的默认端口吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆