Python. , UDP , , , . IP- 192.168.2.1.
- When binding to '192.168.2.255' or '' (empty address), the broadcaster receives sent messages by itself
- When binding to '192.168.2.1', '255.255.255.255' or '<broadcast>', the broadcaster will NOT receive messages sent by themselves
The receiver received UDP broadcast messages in all of these cases.
PS Tested on Python 2.7.9, OS Raspbian 8 (Debian adaptation for Raspberry Pi), Linux kernel 4.4.38
source
share