Print "& for the replies: press Ctrl + c to stop" While 1: (address, buf)=s.r ecvfrom (1024) If not len (buf) : Break Print "Revived the from % s: % s" % (address, buf)
This time, how to send all not to go out, but the IP subnet to my radio, Dest=(6666) '192.168.15.255, Why is this? Is there a way to make full of 255 can also broadcast? Some say the router's problem, but I use a mobile phone has been broadcast, with 255.255.255.255 is successful, the code was written by someone else I will not to come out,
CodePudding user response:
You'll have to put TTL set to 1
CodePudding user response:
What system are you? Different system for broadcasting and processing are not identical, theoretically you subnet broadcast all over 255 radio range are equivalent, because all the radio is not a limit on the router or vlan,