Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to monitor all traffic on a port

📅 2017-Nov-23 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ port, tcpdump ⬩ 📚 Archive

There are many times when you run a server or service on a host at a certain network port. It would be useful to monitor if clients are able to connect to the port.

tcpdump can be used to watch all the traffic to a certain port on your current computer:

$ sudo tcpdump -i any port 9988

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧