Go Back   Velocity Reviews > Newsgroups > Computer Security
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Computer Security - Server Ports

 
Thread Tools Search this Thread
Old 12-01-2003, 12:45 PM   #1
Default Server Ports


Not certain this is for this group but maybe someone here can help.

The browser on my desktop (client) requests a web page from a server.
The client sends that request from 'any' local port to server port 80.
From what port does the server deliver the data to the clients 'any' port?
Is it from port 80 or does it use another port on the server to send the
data?

Any pointers to articles or such that deal with this appreciated. I have
'googled' but all I can come up with are articles on the protocol.
Thanks,
Seán




ClareOldie
  Reply With Quote
Old 12-01-2003, 05:39 PM   #2
ClareOldie
 
Posts: n/a
Default Re: Server Ports


ClareOldie wrote:
> Not certain this is for this group but maybe someone here can help.
>
> The browser on my desktop (client) requests a web page from a server.
> The client sends that request from 'any' local port to server port 80.
> From what port does the server deliver the data to the clients 'any'
> port? Is it from port 80 or does it use another port on the server to
> send the data?
>
> Any pointers to articles or such that deal with this appreciated. I
> have 'googled' but all I can come up with are articles on the
> protocol. Thanks,
> Seán


According to my understanding of the LanSuite Manual the server uses a port
other than port 80 to send the data to the client. Is this true?? Quote
below
Seán

The port above 1023 is the source port; the standard port
is the destination port. The destination machine will return packets using
the original port above 1023 as its destination port. Although this sounds
complicated, the underlying principle is easy to grasp: when a program uses
a port above 1023, replies arrive back at that same port. Here's one last
bit of complexity.
******** Since standard listening ports are for everybody, the
destination machine does not actually use it for data transfer. It only
listens on that port. As soon as a connection is established it hands that
connection to a local port above 1023 and immediately resumes listening for
a new incoming connection request on the standard port. That is how' a web
server can listen for (and handle) thousands of connections from users.





ClareOldie
  Reply With Quote
Old 12-01-2003, 05:52 PM   #3
Craig A. Finseth
 
Posts: n/a
Default Server Ports
In article <XYKyb.2890$>,
ClareOldie <> wrote:
>
>
>ClareOldie wrote:
>> Not certain this is for this group but maybe someone here can help.
>>
>> The browser on my desktop (client) requests a web page from a server.
>> The client sends that request from 'any' local port to server port 80.
>> From what port does the server deliver the data to the clients 'any'
>> port? Is it from port 80 or does it use another port on the server to
>> send the data?


Request:

client uses any port -> server port 80


Response:

server port 80 -> port used by client

The tuple (client IP, client port, server IP, server port) uniquely
defines a TCP connection.

Source: the IP RFC or any book on TCP/IP.

Craig


Craig A. Finseth
  Reply With Quote
Old 12-01-2003, 06:01 PM   #4
ClareOldie
 
Posts: n/a
Default Re: Server Ports


Craig A. Finseth wrote:
> In article <XYKyb.2890$>,
> ClareOldie <> wrote:
>>
>>
>> ClareOldie wrote:
>>> Not certain this is for this group but maybe someone here can help.
>>>
>>> The browser on my desktop (client) requests a web page from a
>>> server. The client sends that request from 'any' local port to
>>> server port 80. From what port does the server deliver the data to
>>> the clients 'any' port? Is it from port 80 or does it use another
>>> port on the server to send the data?

>
> Request:
>
> client uses any port -> server port 80
>
>
> Response:
>
> server port 80 -> port used by client
>
> The tuple (client IP, client port, server IP, server port) uniquely
> defines a TCP connection.
>
> Source: the IP RFC or any book on TCP/IP.
>
> Craig


Thanks Craig for your reply. Have you any comment on the quotation in my
second post?
I thought it was as you described but this manual has me confused.
Seán




ClareOldie
  Reply With Quote
Old 12-02-2003, 12:18 AM   #5
Don Kelloway
 
Posts: n/a
Default Re: Server Ports
"ClareOldie" <> wrote in message
newsMGyb.2854$...
> Not certain this is for this group but maybe someone here can help.
>
> The browser on my desktop (client) requests a web page from a server.
> The client sends that request from 'any' local port to server port 80.
> From what port does the server deliver the data to the clients 'any'

port?
> Is it from port 80 or does it use another port on the server to send

the
> data?
>
> Any pointers to articles or such that deal with this appreciated. I

have
> 'googled' but all I can come up with are articles on the protocol.
> Thanks,
> Seán
>
>


The client will initiate the connection from any port above 1024 to the
web server which is listening on port 80.

--
Best regards,
Don Kelloway
Commodon Communications

Visit http://www.commodon.com to learn about the "Threats to Your
Security on the Internet".





Don Kelloway
  Reply With Quote
Old 12-02-2003, 12:44 PM   #6
ClareOldie
 
Posts: n/a
Default Re: Server Ports


Don Kelloway wrote:

>>
>>

>
> The client will initiate the connection from any port above 1024 to
> the web server which is listening on port 80.


Yes but does the server send the data to the client from its port 80 or does
it hive off the data send to a port other than 80 and continue listening on
80 as the quote states?

Seán




ClareOldie
  Reply With Quote
Old 12-02-2003, 12:58 PM   #7
reshman
 
Posts: n/a
Default Re: Server Ports
For standard port 80 requests, the client will use a port above 1023 and
talk to port 80 on the server. The server will respond back on port 80 to
the port the client used.
1.2.3.4:1024 -> 5.6.7.8:80 (request)
5.6.7.8:80 -> 1.2.3.4:1024 (reply)

What you read in your book can hold true for other applications that use
port mapper. The initial connection is made on a well-known port and then
is moved to a port above 1023. TFTP can work like that as well as many
Unix-based applications. So the manual you read is correct in some
instances. For web-based traffic, the data normally stays on port 80 (for
standard http).

Hope that helps.

Mike


"ClareOldie" <> wrote in message
newsMGyb.2854$...
> Not certain this is for this group but maybe someone here can help.
>
> The browser on my desktop (client) requests a web page from a server.
> The client sends that request from 'any' local port to server port 80.
> From what port does the server deliver the data to the clients 'any' port?
> Is it from port 80 or does it use another port on the server to send the
> data?
>
> Any pointers to articles or such that deal with this appreciated. I have
> 'googled' but all I can come up with are articles on the protocol.
> Thanks,
> Seán
>
>





reshman
  Reply With Quote
Old 12-03-2003, 05:20 AM   #8
Don Kelloway
 
Posts: n/a
Default Re: Server Ports
"ClareOldie" <> wrote in message
news:%J%yb.2975$...
>
> >
> > The client will initiate the connection from any port above 1024 to
> > the web server which is listening on port 80.

>
> Yes but does the server send the data to the client from its port 80

or does
> it hive off the data send to a port other than 80 and continue

listening on
> 80 as the quote states?
>


The data (or webpage content) is passed to the client from port 80 on
the server and the server will continue to listen on TCP port 80 for any
new incoming connection requests.

--
Best regards,
Don Kelloway
Commodon Communications

Visit http://www.commodon.com to learn about the "Threats to Your
Security on the Internet".





Don Kelloway
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prerequisites 70-745 (Business Intelligence) Valmont MCITP 3 06-24-2008 03:03 PM
SQL Server 2008 delayed into Q3 2008 darrilgibson@cox.net MCITP 0 01-27-2008 10:26 PM
MCITP SQL Server 2005 or SQL Server 2008 Darrilgibson@gmail.com MCITP 0 12-19-2007 01:56 PM
Re: USB issue ... some USB 2 ports working only in USB 1 mode hungsolo2005@yahoo.com A+ Certification 0 06-14-2006 08:26 PM
Re: Need Ideas For A New Server, Long Post Gareth Church A+ Certification 2 07-27-2003 12:46 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46