I have written a udp server which receives client requests using a recvfrom()
socket system call, this call receives requests from localhost only, no remote host requests are seen by the recvfrom()
call. I tried capturing packets on the receivng port and I can see the packets coming from remote server, but the request don't reach recvfrom()
, what could be the matter?
Asked
Active
Viewed 1,622 times
0
1 Answers
1
Check to make sure a firewall isn't active. tcpdump
can see packets as they arrive on an interface, before a firewall has processed and dropped them
(Adapted from ktf's comment)

Michael Mrozek
- 93,103
- 40
- 240
- 233
netstat -an | grep the_port_you_use
. – Mat Nov 11 '11 at 09:28I have two different sockets listening on the same port (one for TCP and one for UDP)
tcp 0 0 0.0.0.0:32000 0.0.0.0:* LISTEN 31196/agentd
– Akbar Nov 11 '11 at 10:16udp 0 0 0.0.0.0:32000 0.0.0.0:* 31196/agentd