Hacker News new | ask | show | jobs
by Tepix 659 days ago
No that won't work because the sender doesn't know what the src ip of the packet will be by the time it arrives (NAT is everywhere!)
1 comments

the client COULD use something like https://www.ipify.org/ to get the IP, which can then be used as an additional client argument.

But if an adversary uses the SAME network, then the IP address that the server sees will be the same for the client and the adversary, so it only matters if the adversary takes the packet and sends it from a different network, which the adversary won't have to do, because they still control the network where the packet was originally sent from.