Hi,
I try to broadcast UDP packet on a mult interfaces computer with windows XP.
one IP is 169.254.99.59 and another is 169.254.34.213.
when the both are connected to network, the broadcast is only through the IP 169.254.99.59, even i bind the local address to IP 169.254.34.213.
when I disconnect the interface of 169.254.99.59, the broadcast is through the IP 169.254.34.213. I used the wireshark to check the both interface message. Does anyone have idea? thanks ahead.
code is:
BYTE pBuf[] ="This is broadcast test code!"
SOCKET Broadcastsocket;
sockaddr_in Local_socketAddr,Remote_socketAddr;
Broadcastsocket = socket( AF_INET, SOCK_DGRAM, IPPROTO_UDP );
setsockopt(Broadcastsocket, SOL_SOCKET, SO_BROADCAST, (char*)&bOptVal, bOptLen);
Local_socketAddr.sin_family = AF_INET;
Bookmarks