var ip = System.Net.Dns.GetHostAddresses("google.com")[0].ToString();
When the program is run through Fiddler. The above code returns the localhost IP.
I try setting breakpoints at BeforeRequest and BeforeResponse and AfterSessionComplete but no event is recorded?
May I ask is there a way to make it return the correct google.com IP?
Hey Jasmines,
I can successfully get the IP using the above snippet via FiddlerScript (testing in OnBeforeRequest event) in FIddler Classic. I was also able to create a basic NET project, and while using FiddlerCore, I have once again seen the expected output. That said, It must be related to the specific program that you are running - is that a 3rd-party program that you are developing or an end product that you are trying to debug via Fiddler Classic?