We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

UDP Sender

So we've seen that a TCP sender (in our case nc, or netcat) requires a connection to be established before data can be sent. Let's build our own UDP sender to see how it differs.

Assignment

Create a new program that yeets UDP packets at a server. We want to fully understand the difference between TCP and UDP.

  1. On some systems you may need to add the -k flag to keep the listener running after the first packet is received: nc -u -l -k 42069

However, your OS might yeet you like UDP yeets packets.