how do I know if the UDP port that i'm sending requests to is blocked? I am sending a snmp request and the SNMP agent receives requests on UDP port 161. I want to know if the port is blocked or not?
Asked
Active
Viewed 4,592 times
2 Answers
2
You don't. UDP is connectionless. The only way to tell is if you have something waiting to reply to your message and it doesn't respond. Even this doesn't tell you that it is blocked, it just tells you that something is wrong, sort of like a "general error."
edit: This assumes you were speaking in terms of discovering this remotely.
user20926
- 231
0
The definitive way to test whether a packet is received by the recipient computer is with a network sniffer. Use Wireshark. I recommend running Wireshark on both the client and the server (assuming they're both PCs, not a network appliance) so you can see it being sent as well as received (or not received if the firewall is blocking it).
Klox
- 2,043