Re: Multiple connections, same port

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



All clear, thanks a bunch.
Sharon.

"William Stacey [MVP]" <william.stacey@xxxxxxxxx> wrote in message
news:edyjDugPGHA.208@xxxxxxxxxxxxxxxxxxxxxxx
No, they can both send. Remember that have different sockets on the
server.
Tcp handles the retry logic, so it is not something you normally have to
deal with.

--
William Stacey [MVP]

"Sharon" <nothing@xxxxxxxxx> wrote in message
news:eCQ2vWePGHA.2888@xxxxxxxxxxxxxxxxxxxxxxx
| Ok, there is one more thing that is not clear to me.
| If 2 clients are connected on the same server ip & port,
| what happens when both clients try to send data at the same time?
| One of them waits until the other has finished sending?
| Thanks,
| Sharon.
|
|
| "William Stacey [MVP]" <william.stacey@xxxxxxxxx> wrote in message
| news:uChf2oZPGHA.3840@xxxxxxxxxxxxxxxxxxxxxxx
| > Yes, that is way it should work. Your client's would not know where to
| > connect if the port keeps changing on the server. As I said, there
are
4
| > pieces of information that make up a unique socket. only 1 has to be
| > different per socket. So the same client can connect multiple times
to
| > the
| > same server port as long as the client ports or different (dynamic).
Many
| > clients can connect to same server port because they all have
different
| > IPs,
| > etc. SMTP is port 25, DNS is 53 - they use wellknown server ports.
Does
| > that help?
| >
| > --
| > William Stacey [MVP]
| >
| > "Sharon" <nothing@xxxxxxxxx> wrote in message
| > news:edQKFoXPGHA.2704@xxxxxxxxxxxxxxxxxxxxxxx
| > | Hello William, and thanks for your reply.
| > | The listener socket always listens on the same port,
| > | but shouldn't a new worker socket be given a unique server port?
| > | In my app all clients use the same server listener port.
| > | In all examples i've seen about Socket async methods (BeginAccept,
| > | EndAccept),
| > | there is no attempt to switch the client port.
| > | Am i doing something wrong?
| > | By "yes" you mean that this is the way it should work?
| > | Sharon.
| > |
| > |
| > |
| > | "William Stacey [MVP]" <william.stacey@xxxxxxxxx> wrote in message
| > | news:uxBIlUXPGHA.516@xxxxxxxxxxxxxxxxxxxxxxx
| > | > Yes. Your server listens on same port, but the sockets are unique
| > (client
| > | > IP, client port, srv IP, srv Port).
| > | >
| > | > --
| > | > William Stacey [MVP]
| > | >
| > | > "Sharon" <nothing@xxxxxxxxx> wrote in message
| > | > news:eDKkJIXPGHA.1532@xxxxxxxxxxxxxxxxxxxxxxx
| > | > | Hi all,
| > | > | I've implemented a TCP server using the Socket async methods.
| > | > | When connecting to the server from 3 instances of hyper
terminal,
| > | > | i've noticed that each of the newly created server sockets, uses
the
| > | > same
| > | > | server port.
| > | > | I assumed that a new connection will receive a unique port.
| > | > | If this is the way its suppose to work, is it a performance
issue?
| > | > | Is it possible that connections from the same IP will connect on
the
| > | > same
| > | > | server port?
| > | > | I have no way to test it, as i have only one computer.
| > | > | Thanks,
| > | > | Sharon.
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|




.



Relevant Pages

  • RE: Printing from Win9x clients stops
    ... > and make sure this software does not interfere with SBS Server. ... > clients, please disable it and try again. ... Create a local printer and redirect the port to the network server. ...
    (microsoft.public.windows.server.sbs)
  • Re: Apache webserver outage - need help with forensics
    ... Bob Brennan wrote: ... > I have a server which went completely unresponsive today on port 80 ... How many clients is your server configured to handle simultaneously? ... clients communications stuck and no new client connections could be accepted. ...
    (Fedora)
  • RE: Web Services or Sockets?
    ... different companies with addresses from a DHCP server. ... it listen to a port on the client computer? ... I don't know how these two examples with clients over the internet. ... >> If the client is listening to a port, but is sitting behind a firewall, how ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: Barcode Scanner on Client Com port
    ... I cannot find a Com port setting on my CE .NET device although it has one ... >>Win32 application very happily on a Windows 2003 Server. ... >> the Clients. ... >> physically attached to Com1 on the server. ...
    (microsoft.public.windows.terminal_services)
  • Re: Disable Internet surfing
    ... Iit sounds like you probably don't have a server, ... group policies, you really can't prevent 9x clients from doing many things. ... just allow all ports and only block port 80. ...
    (microsoft.public.win2000.security)