I just tried your suggestion.... I used LocalPort-property to set a fixed port to open a socket for listening first.
However, any subsequent attempts to use that same port for sending the UDP packet fail. Only after closing the socket used for listening I can use that port for sending a packet. Kris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Angus Robertson - Magenta Systems Ltd Sent: zondag 2 april 2006 15:16 To: twsocket@elists.org Subject: Re: [twsocket] THttpCli and UPnP devices > I need to WSocket->Connect(); first because I need to know which port > will be used for sending Can you not use the LocalPort property to specify a fixed port? Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be