[Gambas-user] not able to send UDP datagram on local host

Benoît Minisini g4mba5 at gmail.com
Wed Sep 2 23:09:27 CEST 2020

Le 02/09/2020 à 20:43, pinglix via User a écrit :
> Hello,
> I am new to gambas and I am tring to send datagrams on port 50010 on 
> localhost.
> In a form I put 2 UDPSocket listeners on port 50000 and 50001 and they 
> work fine, they capture packets coming from 2 applications sending data 
> on such ports.
> Then I put a third UDPSocket to send data on port 50010 to the above 
> applications but I cannot get this working.
> I tried to configure the socket but nothing is coming out. I cannot find 
> a way to send the data.
> TargetHost should be local host and TargetPort 50010
> I am very frustated after some days of testing, in C language it was 
> very easy to do this.
> I attach my simple project.
> Any help is appreciated.
> Thanks

I just set the TargetPort property of UdpCmd to 50000, and everything 
works as expected (I see "Test-1" in the left textarea).

If you don't set the Broadcast property, then you have to set the 
TargetHost to


Benoît Minisini

More information about the User mailing list