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.
Asked
Active
Viewed 908 times
1 Answers
1
Use connect(2)
- you'll get an error on the second send, see more about connected UDP sockets.

Community
- 1
- 1

Nikolai Fetissov
- 82,306
- 11
- 110
- 171