from socket import *
import time
cs = socket(AF_INET, SOCK_DGRAM)
cs.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
cs.setsockopt(SOL_SOCKET, SO_BROADCAST, 1)
while(True):
cs.sendto("TestText".encode(), ('255.255.255.255', 12345))
print('test')
time.sleep(1)