Re: TCP/IP Ports

From: Neil Horman (nhorman_at_rNeOdShPaMt.com)
Date: 12/08/03


Date: Mon, 08 Dec 2003 08:22:33 -0500

Awie wrote:
> All,
>
> I am sorry to ask a very basic question. But I am rather confuse about
> TCP/IP Port and need to make sure. Hope you would explain me.
>
> Let say I want to access a WEB server
>
> 1. Will my computer use un-privilege port (above 1024) to destination
> server or use port 80?
You will send a connection request to port 80 on the remote (server)
machine)
> 2. What port will be received by my computer? Is it port 80 or
> un-privilege?
The server will establish a new socket with you in response to the
connect request in (1) on a port above 1024 (remembering that the web
server application can only request unprivlidged ports as well)

> 3. How is about SMTP port? Is it like HTTP or using port 25 for both
> direction?
All TCP connections from user space applications are the same. You send
a connection request to a well-known port (sometimes a privlidged one if
the app has been configured that way) and the actuall connection is
established on an unprivlidged port.

>
> Many thanks for your kind help.
>
> Best Regards,
>
> Awie

-- 
/***************************************************
  *Neil Horman
  *Software Engineer
  *Red Hat, Inc., http://people.redhat.com/nhorman
  *gpg keyid: 1024D / 0x92A74FA1
  *http://www.keyserver.net
  ***************************************************/


Relevant Pages

  • RE: Some technical errors
    ... If the SMTP server is not running on port 25 TCP it is not a public ... Manager - Computer Assurance Services BDO Chartered Accountants & ...
    (Security-Basics)
  • Re: SRV RRs support in Internet Explorer?
    ... The port number could be implicit (i.e. ... At any point in time, a server could fail ... can't effectively LB or backup because NSs cache the records for the TTL ... I still don't see how SRV records would help backup or LB. ...
    (microsoft.public.win2000.dns)
  • Re: Still cant connect to RWW or OWA remotely
    ... I get 'cannot find server or dns error' on both ... TCP [port number]> to open the ports. ... As for error messages when I fail to access RWW with the laptop, ... network, no connection seems possible. ...
    (microsoft.public.windows.server.sbs)
  • Re: cannot send mail from Windows mail
    ... When a username/password combination doesn't work in Windows Mail, ... I mean I dont use it but as outgoing address for my ISP account. ... youir username and password are correct for your mail server". ... Ask your home ISP if they support SMTP on a port other than 25. ...
    (microsoft.public.windows.vista.mail)
  • Re: How to trigger server to reattempt printer connection
    ... The spooler does not log any SNMP data. ... Best practices and known issues when you install Windows Server 2003 Service ... Before restarting the spooler next time, create a new port name to the ... This does not happen often, but when it does, it seems to stay offline ...
    (microsoft.public.windows.server.general)

Loading