Networking cheat sheet

https://lemmy.one/post/1280920

Networking cheat sheet - Lemmy.one

This is a really good way of explaining the difference.
So, UDP just sends it out there and anyone can intercept it?
From what I can tell yes. There’s no established connection, the data is sort of just broadcasted.

No no, it's not "broadcasted". It still has a fixed sender and receiver IP address, but UDP doesn't verify whether the receiver got the data or not. You can implement that over UDP, but you have to do it yourself.

With TCP, the packet will retransmitted automatically if the receiver didn't tell the sender "yep, I got it".