Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Possible to capture all the tcp packages sent from my computer?
billconan last edited by
I am interested in writing a little tool to capture all the tcpip packages sent by my web browsers (multiple browsers). I heard that every request sent by a browser actually uses a different port. So is it possible to write a program using QT to listen to all the ports?
Suppose I have two applications that are listening to the same port. Can both of them respond to the tcpip request? Or the operating system will only give the package to one of the listeners?
I know a tool called TCPView for windows that does this. But since I am using a different operating system and there is no fun to use a readymade tool, I still want to write one myself.
andre last edited by
This requires interacting with the network stack on a level that is not supported by Qt. Of course you can write the front end code using Qt, but for the actual hooking into the OS to do what you want, Qt can not help you.
Scylla last edited by
For this you should take a look at the pcap lib and use Qt as frontend.