home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 12,753 of 14,669   
   Glen Herrmannsfeldt to Ken   
   Re: clients sends/receive a request/resp   
   04 Mar 09 13:51:33   
   
   e829c46b   
   From: gah@ugcs.caltech.edu   
      
   Ken wrote:   
      
   > When the client sends a HTTP request to the server with a particular   
   > port X, will the server sends a HTTP response back to the client using   
   > the same port X, or possible different ports that are available? My   
   > understanding is that there is a socket connection, and it should use   
   > the same port in the connection, which is port X.   
      
   A TCP connection is based on the quad (source address, source port,   
   destination address, destination port).  All must agree.   
   HTTP is TCP based.   
      
   For UDP, a receiver only needs to match the receiver's address   
   and port, and for that matter on multihomed hosts, only   
   the port.   Replies should have the appropriate source   
   port and address, but most receivers will accept them with a   
   different port or address.   
      
   -- glen   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca