Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jan : Re: Help with socket ports on TUDPSocket
| Subject: | Re: Help with socket ports on TUDPSocket |
| Posted by: | "PC Pete" (pcpe..@audiography.com.au) |
| Date: | Fri, 25 Jan 2008 11:33:56 |
Remy Lebeau (TeamB) wrote:
> That is because TUDPSocket never calls the TIpSocket.Bind() method to
> establish the local IP/Port for the allocated socket. Without that, the
> socket's local port remains 0, telling the OS to pick a random port instead.
> Without re-writting TUDPSocket, one thing you can do is use the
> OnCreateHandle event to bind the socket manually. Otherwise, I suggest you
> switch to a different component, such as the UDP client in Indy, ICS, or
> Synapse.
Thanks so much Remy, that seems to be what's happening. But because I'm
using TurboDelphi for evaluation, it doesn't allow 3rd party components.
So I'm going to bite the bullet and install Delphi 8 C/S and use those
components instead.
My apologies for not explaining about the TD environment.
Cheers,
PCPete