I'm having a problem with broadcasting. I create a socket, make it non blocking ( ioctl ) ,enable broadcasting and bind it to a client port ( 27010 ). On the server side I do the same but bind to a different port ( 27011 ).
As per my design when the client broadcasts ( using destination address as 255.255.255.255 ) any server running on the sub net should receive the packet.
This is working fine if both the client and server are running on localhost ( 127.0.0.1 ) but on the subnet ( 192.168.1.X ) it dosen't seem to be work. My eth0 has been configured to mask 255.255.255.0 which netcinfig assigns by default.
BTW what do you mean by MTU? I even tried reducing packet size to less than 1500 but to no avail.
i'm a newbie in network programming and am doing a project using UDP and broadcasting. My deadline is fast approaching.
Thanks in advance:
Uday