Dec-03-2019, 02:01 PM
(This post was last modified: Dec-03-2019, 02:02 PM by ikdemartijn.)
I figured it out! Pardon me for replying on my own post but I thought people might appreciate it if they ever stumble upon this same problem ;) See below for the code I used:
import socket UDP_IP = "10.0.0.37" #the IP of the ethernetport of the pc UDP_PORT = 30002 # the receiving port on the pc sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP sock.bind((UDP_IP, UDP_PORT)) while True: data, addr = sock.recvfrom(4096) # buffer size is 4096 bytes print("received message:", data)replace the UDP_IP and UDP_port with your own values ofcourse