This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

Using Wireshark for monitoring virtual ports

asked Mar 10 '26

updated Mar 11 '26

We're developing a simulation environment where we can simulate PLC controllers. The controllers can communicate with each other via (virtualized) communication ports. We'd like to use Wireshark to monitor traffic on these virtual ports. How can we do this?

Comments

Maybe you can start to help us help you by giving more information. What kind of OS is the simulation environment using? How are the virtual ports created? Are they visible to the OS? Are they visible to libpcap/npcap? Are all the PLC controllers simulated on the same host?

User 36540 ( Mar 10 '26 )

Simulation environment run on Windows OS. The virtual ports are not visible to the OS. They are created inside the simulation environment. All the controllers are simulated on the same host.

User 76637 ( Mar 11 '26 )

1 Answer

0

answered Mar 11 '26

As Wireshark uses the npcap library to capture the packets, it is more of a question for the npcap team. Since the virtual ports are not visible to the OS, I suspect they are not visible to npcap either. You could work with the npcap team to make the interfaces seen.

Another option would be to use an extcap interface. But then you would somehow need to have access to the packets on the virtual ports. If you can somehow export the packet data on the virtual ports, you could write an extcap module to make those packets available in WIreshark.

See: https://www.wireshark.org/docs/man-pa...

cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.