Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find Port number of IP address?

Tags:

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?

like image 393
jams Avatar asked Sep 30 '11 18:09

jams


People also ask

How do I find the port number of a URL?

For Windows: Go to the command prompt. Type ipconfig. Then, type netstat to populate a list of all the port numbers.

Is port number part of IP address?

The answer is no. The IP address is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. The port number is used so the data is directed to the correct location within this device.


1 Answers

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)

like image 121
Anderson Avatar answered Nov 09 '22 02:11

Anderson