From 6e4fd99db1cf6654e28f203a69d2eac947edd32a Mon Sep 17 00:00:00 2001 From: Yan Date: Mon, 24 Feb 2025 02:02:01 -0700 Subject: [PATCH] hint --- intercepting-communication/udp-2/DESCRIPTION.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/intercepting-communication/udp-2/DESCRIPTION.md b/intercepting-communication/udp-2/DESCRIPTION.md index b5e0aa6..a23198a 100644 --- a/intercepting-communication/udp-2/DESCRIPTION.md +++ b/intercepting-communication/udp-2/DESCRIPTION.md @@ -1,2 +1,9 @@ Though we didn't explore this for TCP, in addition to selecting the destination port, both TCP and UDP can set their _source_ port. We'll practice that here --- you can set the source port with `s.bind` on the socket, exactly how a server does it to set their listening port. +Read the source code of `/challenge/run` to see what source port you'll need! + +---- + +**NOTE:** +You must set the source port _before_ sending data! +Otherwise, Linux will pick a random source port (the default behavior, when `bind` is not called).