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?
相关问题
- IPAddress.[Try]Parse parses 192.168 to 192.0.0.168
- UrlEncodeUnicode and browser navigation errors
- Improve converting string to readable urls
- Jasper: error opening input stream from url
- Port of the Rails app when running Cucumber tests
相关文章
- 如何通过命令行测试dns反向解析
- How to resolve hostname to an ip address in node j
- How do I enable custom domains for my users?
- C# HttpClient.SendAsync always returns 404 but URL
- Prevent $anchorScroll from modifying the url
- How does a browser handle cookie with no path and
- Base64URL decoding via JavaScript?
- Should I url encode a query string parameter that&
I got the hostname and port number using this.
The port is usually fixed, for DNS it's 53.
If it is a normal then the port number is always 80 and may be written as http://www.somewhere.com:80 Though you don't need to specify it as :80 is the default of every web browser.
If the site chose to use something else then they are intending to hide from anything not sent by a "friendly" or linked to. Those ones usually show with https and their port number is unknown and decided by their admin.
If you choose to runn a port scanner trying every number nn from say 10000 to 30000 in https://something.somewhere.com:nn Then your isp or their antivirus will probably notice and disconnect you.
Use of the
netstat -a
command will give you a list of connections to your system/server where you are executing the command.For example it will display as below, where 35070 is the port number
Port numbers are defined by convention. HTTP servers generally listen on port 80, ssh servers listen on 22. But there are no requirements that they do.
DNS server usually have a standard of ports used. But if it's different, you could try nmap and do a port scan like so: