Setup:
- I have client C connecting to server S
- Both C and S are on the same machine
- In C the server address is hardcoded to 127.0.0.1. Likewise, in S the client address is hardcoded to 127.0.0.1
Problem: I want to be able to sniff the traffic between the client and the server.
- Due to the configuration, I cannot move the client nor the server to different locations (the address are hardcoded)
- Installing the loopback interface and using tools like Wireshark+WinPcap doesn't lead anywhere (was actually already known but was worth a try)
- RawCap, suggested in another topic, doesn't work. IP
127.0.0.1
is listed, but does not record any traffic. - Using
rinetd
to route the traffic elsewhere, as suggested here doesn't work (cannot bind on 127.0.0.1) - Not interested in using a HTTP local proxy, such as Fiddler, because I'd like to capture also other protocols
- Two commercial tools work, specifically CommView and Local Network Monitor, which means it must be possible to do that ;)
How can I do to capture the traffic? Any pointer on functions I should use or documentation I should read?
Thanks!