Networking

ip – Basic question in finding the port of a website

To my understanding, every time someone is hosting a service e.g. mysql server, there is always a server IP (or domain name) and a Port needed to reach the service (e.g. www.servername.com:3306).

However, when I access sites such as www.google.com or www.wikipedia.org, I ‘ve no idea what port I am connecting to.

For instance, none of the following links www.google.com:80, www.google.com:8080 work, and the case is the same for wikipedia. So the question is:

  1. Is there a port already “embedded” in links such as google or wikipedia, or have I just not found the default port yet (i.e. it is not 80 or 8080)?

  2. Is there a general way to break a link www.somewebsite.com into a host + port combination in the form of www.somelink.com:[PORT] ?


Source link

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button
%d bloggers like this:

Adblock Detected

Please consider supporting us by disabling your ad blocker