Is there any way to send a file (picture or video) using Netcat and UDP. It defaults as TCP, but I would like to send using UDP. I tried simply adding -u to the nc command, but that didn't work. Here are the two commands I'm using:
cat File.jpg | nc -u -l 777 nc -u 192.168.x.x 777 | pv -b > newfile.jpg
I used my IP address for x.x, and the corresponding file on my PC. I am also using Ubuntu.
Thanks for any assistance!