Pipe video stream from raspberry pi to local computer with ffplay

I use this to get a live video stream from my Raspberry Pi with Camera attached

Execute this on the Pi, where TARGET_IP is my local computer where I will watch the stream, and PORT is an arbitrary port number.

$ raspivid -t 999999 -o - | nc -u $TARGET_IP $PORT

Execute this on the local computer where you will watch the video stream

$ nc -ul $PORT | ffplay -