0
Good afternoon.
Guys, I’m developing a java application for capturing packages using JPCAP. I am using a virtual machine, but I am not able to select the network interface for my program to capture the network packets. Is there any way to do this using the virtual machine? I tested the code on the local machine and it is working as desired.
In short, it would be the use of JPCAP in Virtualbox.
Thank you.
I’ve done it. However I can’t capture any network packets.
– Breno Melo
I was able to solve the problem. The card identifier used by Virtualbox is 0 (zero). Jpcapcaptor captor = Jpcapcaptor.openDevice(interfaces[0], 65535, false, 200);
– Breno Melo