Packet Sniffer Showing Too Much Traffic

My packet sniffer is only supposed to show the traffic from my virtual machine in this print statement but instead, I am getting this every time I run it and I don’t even have the browser open.

Can someone help? Here is my code. I’m only on the first part of this section so there’s not much.

Most of the time these packets come from background processes in all the OS whether it’s Windows or Linux. There will be some or the other process trying to connect to the Internet for some task. You can check these easily by using netstat to see which processes are connecting to outside your network.

Nevermind, I found the issue. I would advise to anyone using logitech peripherals, turn off any logitech software. They will constantly send out UDP packets.