#!/usr/bin/python3 # -*- coding: utf-8 -*- import socket s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_UDP) # Unlike our previous UDP server, we don't bind this socket. # This means we can receive all the UDP traffic... while True: message, address = s.recvfrom(65535) # The port here is not accurate print(f"Raw message from {address} was {message}")