Hello iam new to the python language, Iam trying to send a udp packet on my machine and use wireshark to see the data come through so far i have not seen any data inbound or outbound on my machine.Below is the code iam using and iam also using python version 2.7.15 just want to make sure my code is good before i start looking elsewhere for the problem.Thanks
import socket UDP_IP = "127.0.0.1" UDP_PORT = 5005 MESSAGE = "Hello, World!" sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP print "init...." while True: sock.sendto(MESSAGE, (UDP_IP, UDP_PORT)) print "sent data"