my linux pc has a udp port listening, however, the application does not seem to receive any packets from this port. Is there any tool that I can use to show the number of packets received on this port?
tcpdump. For example, on my machine, the interface I'm looking for the traffic on is eth0, and in this case I'm checking port 123.
jed@myhost:~$ sudo tcpdump -nei eth0 udp port 123
If you don't know what the interfaces on your machine are, you can get them with
ifconfig -a or
ip link (either might require sudo, depending on your permissions).
If you just want counters for a particular protocol, then you can create an iptables rule to accept those packets, and it will keep track of how many packets and bytes matched the rule.
If you wanted to match packets on UDP port 44, the iptables command would look like:
iptables -A INPUT -i eth0 -p udp --dport 44 -j ACCEPT
If you want more details about those packets, then as Jed Daniels has said,
tcpdump is gonna be your best bet.
tcpdump -nei eth0 udp port 44