switch to raw socket (mirroring the python code we've got)