http://www.perlmonks.org?node_id=983161


in reply to How to use STUN? And other UDP-related problems.

If wireshark shows nothing, and your blocking recv blocks, and your non-blocking recv shows nothing then there can only be one conclusion:
The data is not arriving at the machine you are expecting it to.
Find out why (hardware firewalling/routers elsewhere?). Wireshark gets its data from the raw network device, so locally present iptables are not in effect.

Replies are listed 'Best First'.
Re^2: How to use STUN? And other UDP-related problems.
by aitap (Curate) on Jul 23, 2012 at 12:52 UTC

    So, just asking STUN server for IP address and port should be enough to receive UDP traffic sent from anywhere (even from my machine) to that address and port? That's sad.

    Anyway, thanks for your answer. I'll search for some other way of bypassing NAT.