6source_ip =
"192.168.2.101"
8print(f
"Testing UDP from {source_ip} to {target_ip}:{target_port}")
10 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
11 sock.bind((source_ip, 0))
12 print(f
"Bound to {source_ip}")
13 sock.sendto(b
"test packet", (target_ip, target_port))