If I set both forms UDP socket to broadcast to "255.255.255.255" nothing happens. But if I set one of the UDP sockets to broadcast to "127.0.0.1" (the other still set to 255.255.255.255) then they both start receiving from each other.
255.255.255.255 is a broadcast IP address of a class E address (if I remember correctly, that is. In any case, anything past C [224.x.x.x] is reserved). Try using 192.168.x.x (a private address) instead with a broadcast address of 192.168.x.255 (unless you're subnetting). Also, 127.x.x.x is reserved for maintenance/debugging/etc.
Last edited by jemidiah; Oct 30th, 2003 at 07:09 PM.
The time you enjoy wasting is not wasted time. Bertrand Russell
Tiovital: I was trying to come up with a sample code of UDP Broadcasting for my friend. Since I only have one PC now, I'm trying to simulate within one PC (you can do a local connect on TCP 127.0.0.1 so I thought it was possible with UDP broadcasts).
jemidiah: I already tried 203.255.255.255 but that didn't work. I think I figured out the problem (I think). I forgot that my friend borrowed my LAN card so the other address available to me aside from 127.0.0.1 is the address supplied by the ISP (202.70.x.x) when I connect to the internet. I'll have to check that out...
Thanks for your input guys. If it still doesn't pan out as expected I'll post again.