c++builder - Indy > BroadCast to 172.30.58.255 fail -


my environment:

c++ builder xe4 indy 10.5.8.3 

i trying broadcast network 172.30.58.x subnet mask 255.255.255.0.

using tidudpclient, tried following resulting in fail (no response).

// case1  idudpclient1->broadcastenabled = true; idudpclient1->broadcast(cmd, port, l"172.30.58.255"); 

instead, following works, unlimited network (also including other 172.30.58.xxx)

// case2 idudpclient1->broadcastenabled = true; idudpclient1->broadcast(cmd, port, l"255.255.255.255"); 

with indy, how can broadcast 172.30.58.xxx?

before doing accesses tidudpclient.binding property (such broadcast(), connect()/active, send/receivebuffer(), etc), set tidudpclient.boundip property local ip connected 172.30.58.xxx network.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -