Re: Router/Firewall Port Mapping Question

From: CheshireCat (blah_at_balh.com)
Date: 12/07/03


Date: Sun, 7 Dec 2003 09:17:42 -0000

Hi Duane

Sockets on the PC can be client or servers.
Server/listening sockets are bound to a particular port number by an
application when they're opened. The port number is usually selected by the
people developing the application.
Client sockets are usually not bound to a port number and the operating
system will assign an available port number when the socket is opened.
With "permanent" stream connections, you have to have a Client on one side
and a Server on the other. With "temporary" datagram sockets eg UDP the
situation's more flexible and you can have a serving socket on each side
bound to a particular port number.
When a client hits the router with a request for a stream connection to an
external server, the router will open it's own client socket with a port
number from its list of available ports. This router client makes the
connection to the remote server and will forward the packets between PC
client and server until the connection is closed. I'm led to believe that in
the case of datagrams where there's no permanent connection, that if a
router receives a datagram reply within a certain time limit then it's aware
of where to forward the packet within the internal network.



Relevant Pages

  • Re: Banana Republic (was Re: OpenVMS Book Wins award)
    ... client ... No bollocks HTTP, SOAP, XML, Java, Garbage ... receive messages from any number of server processes who in turn could be ... Unlike TCP/IP and/or UDP Sockets with Java that have been around since ...
    (comp.os.vms)
  • Re: Unable to print to networked printer - get access denied messa
    ... Check the permissions on the server assuming the client has a true RPC ... How is the Standard TCP/IP port configured for the device? ...
    (microsoft.public.windowsxp.print_fax)
  • Re: interfaces lo:1 lo:2 lo:3? (for remote ssh tunnels)
    ... That's the problem tunneling (port forwarding) solves. ... >>can't get past the client firewall. ... > I don't understand why the server would be making the ... server initiates another connection to the client -- in this ...
    (Debian-User)
  • Re: Remote Connection Issue
    ... through port number 3389 and a workstation on the LAN through port number ... I understand that you want to allow a LAN client ... and you have configured server publishing rule ... > By default Terminal Server and Windows 2000 Terminal Services uses TCP ...
    (microsoft.public.windows.server.sbs)
  • Re: Asynchronous socket programming vs. remoting
    ... You are the first person that said I should use sockets. ... them quicker than I can load them from my harddrive using the file system. ... It scales nice too - I tried throwing 400 requests at the server in a span ... > do not need the same assembly on the client and server. ...
    (microsoft.public.dotnet.languages.csharp)