what is port number work on internet

Posted on 2006-04-07
Last Modified: 2010-03-19
If there have incoming message form the internet. How does port mumber determine which service they sould handle with.
Question by:teera
    LVL 95

    Accepted Solution

    Your computer hear any incoming messages from the internet UNLESS there's something on your computer listening for that message.  The messages are addressed to a specific port.  If there's no program listening for information on that port, then your computer ignores the message.

    Think of it like 65000 phone numbers (there are Roughly 65000 ports).  If you call a port and someone isn't there to answer the phone, it just rings and rings (assume no answering machine).
    LVL 2

    Assisted Solution

    Port numbers do not determine the service, the service determines which port it is using.  There are well know ports, like port 80 & 443 for http and https.  But in reality any service can listen on any port that it can be configured for, so you can "listen" for http traffic on port 8080 if you configure you web service to do so.
    LVL 30

    Assisted Solution


    View that link for what most common ports are used for.
    LVL 17

    Assisted Solution

    You can look at irwin's link, it's a good one. But as far as a lot of things go, GENERALLY the port that programs send traffic to are already agreed upon such as 80 for http traffic, 443 for https, 21 for ftp, 53 for dns, etc. Think of these as agreed upon guidelines. However, that doesn't mean that port is the only one the server is allowed to listen in on. You can configure many servers to use a different port, as long as the client knows to look at that port instead.

    Example: uses port 8080 for web traffic instead of 80... so the client needs to know to go to instead of just .. why? when you type in a web address without a port number, the browser will assume to go to port 80. It's more or less a defined standard that's not followed 100% of the time.

    When you have a server, you define the port you want to "listen" for traffic of a particular type. But if you do not define one and set up a given service, the standard port for the service you've set up will be the listening one.

    These standards are also used by software companies to make life easier for users. They will give you the flexibility to specify a port number if you have to, but by default they'll assume the defined standard port for the given service. Think of it like me calling you at your home number unless you tell me to call you at a another number.

    Make sense?
    LVL 9

    Assisted Solution

    Hello teera, (Internet Assigned Numbers Authority) is a good start for this kind of information.  In particular:

    A program has to listen on a specific port (or range of ports), otherwise that port is like knocking on the door of an empty house.  Programs that use 'well-known' ports, tend to take their port numbers from this file.


    the same file is /etc/services (much more sensible!).

    So if you changed the line beginning "telnet" from, "telnet 23/tcp" to "telnet 10023/tcp", your telnet server (depending on what it is) would listen on port 10023 by default.  As most telnet server's allow you to manually specify a port that will override this setting, it may be a bad example - but you know what I mean I hope!

    Steve :)
    LVL 17

    Assisted Solution

    sommand line type


    BR Dushan
    LVL 30

    Expert Comment

    cool. thank you!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    The DSL Parameters part of this article is valid and can be considered with any brand of internet router and modem (Dlink, 3com, Alcatel, Usrobotics, Parks), by accessing the configuration interface available by the manufacturer eg: …
    Some time ago I was asked to set up a web portal PC to put at our entrance. When customers arrive, they could see a webpage 'promoting' our company. So I tried to set up a windows 7 PC as a kiosk PC.......... I will spare you all the annoyances I…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now