Streaming jetson usb camera to remote pc

please be aware, that you cannot send/read more than 64k bytes in a single udp packet. (so your SOL_SOCKEToption there is already bs, fooling you into believing something wrong)
unlike tcp, it also wont auto-fragment your data into several packets, or care for the correct order of those.
then, it would probably need a ‘blocking’ socket on the receiving side, else most of the time there’s nothing to read from (and you dont even check !), a proper ‘0.0.0.0’ server address (not ‘’), etc.

low-level networking is hard !
dont expect silly copy-pasting stuff you dont understand to work, ever !

again, throw it away, it’s all bs !

maybe you can just install gstreamer on your jetson, and use that to serve a video stream ? and use VideoCapture to receive it on the other side ?
(w/o breaking your neck at writing own low-level code for this)