import socket
udpServer = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
udpServer.bind(('10.8.153.30',8081))
import socket
import time
str = "1_1bt4_10#32499#002481627512#0#0#0:1289671407:a:b:288:kaige"
'''
udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
udp.connect(("10.0.142.206",2425))
udp.send(str.encode("gbk"))
'''
for i in range(256):
ip = "10.8.153.31.%d"%i
print(ip)
udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
udp.connect((ip,2425))
udp.send((str.encode("gbk")))