Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Mar : UDP sends arbitrary port
| Subject: | UDP sends arbitrary port |
| Posted by: | "Craig" (cra..@radicalage.com) |
| Date: | Wed, 29 Mar 2006 11:49:23 |
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