如何查找IP地址的端口号? [英] How to find Port number of IP address?

查看:573
本文介绍了如何查找IP地址的端口号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

解决方案

不幸的是,网络浏览器用于定位Web服务器的标准DNS A记录(IP地址的域名)
不包含端口
号。 Web浏览器使用URL协议前缀(http://)到
确定端口号(http = 80,https = 443,ftp = 21等)
,除非端口号被特别键入在URL中(例如
http://www.simpledns.com: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 (http://) to determine the port number (http = 80, https = 443, ftp = 21, etc.) unless the port number is specifically typed in the URL (for example "http://www.simpledns.com:5000" = port 5000).

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

这篇关于如何查找IP地址的端口号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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