Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Mar : Re: UDP sends arbitrary port

www.cryer.info
Managed Newsgroup Archive

Re: UDP sends arbitrary port

Subject:Re: UDP sends arbitrary port
Posted by:"Craig" (cra..@radicalage.com)
Date:Wed, 29 Mar 2006 11:58:19

Hello again,

It turns out I spoke backwards: it is the Source Port I need to modify.
Sorry about that!

Craig


"Craig" <craig@radicalage.com> wrote in message
news:442ae4c9$1@newsgroups.borland.com...
> Hello,
>
> Is there any way I can assign the local port when sending a UDP packet?
> Not the destination port, which is obvious with .port (Indy) or
> .remotePort (Delphi internet).  One would think that .localPort (Delphi
> internet) would do it, but it does not.
>
> Here's the deal: we have a remote client that sends a datagram to our
> server, then it will wait for 2 seconds for a  response from the server on
> the exact same ip and port.  For some reason, the server's local port pops
> up with an arbitrary number (help says this is normal) and I cannot figure
> out how to modify that port.  Because the local port is not the same as
> the incoming request, the reply is never accepted by the remote client
> hardware.
>
> Thanks in advance,
> Craig

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive