如何查找IP地址的端口号?

编程入门 行业动态 更新时间:2024-10-23 19:26:55
本文介绍了如何查找IP地址的端口号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们可以找到 IP 地址域名或 URL 。但是如何找到承载域名的 Port 号码?

解决方案

不幸的是,网络浏览器用于定位Web服务器的标准DNS A记录(IP地址的域名)不包含端口号。 Web浏览器使用URL协议前缀(http://)到确定端口号(http = 80,https = 443,ftp = 21等),除非端口号被特别键入在URL中(例如www.simpledns:5000=端口5000)。

我可以在DNS中为我的网络服务器指定TCP / IP端口号吗? (标准端口80除外)

We can find out IP address of a domain name or URL. But how to find out Port number on which a domain name is hosted?

解决方案

Unfortunately the standard DNS A-record (domain name to IP address) used by web-browsers to locate web-servers does not include a port number. Web-browsers use the URL protocol prefix () to determine the port number (http = 80, https = 443, ftp = 21, etc.) unless the port number is specifically typed in the URL (for example "www.simpledns:5000" = port 5000).

Can I specify a TCP/IP port number for my web-server in DNS? (Other than the standard port 80)

更多推荐

如何查找IP地址的端口号?

本文发布于:2023-08-07 13:48:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1319390.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:端口号   地址   IP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!