How do I know if I got an ICMP Host Unreachable after trying to send some data to a UDP port ? I want to check for opened UDP ports on a machine.
Use connect(2) - you'll get an error on the second send, see more about connected UDP sockets.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With