Problem when trying to monitor http(s) requests of Ubuntu on Windows 10

1 Answer 1116 Views
Fiddler Classic Fiddler Everywhere Linux
MOHAMMADMEHDI
Top achievements
Rank 1
MOHAMMADMEHDI asked on 04 Jul 2022, 02:18 PM
I am a new Fiddler classic user on Windows 10.  I can easily monitor http(s) requests of my browsers such as Chrome or Microsoft Edge. However, no http(s) requests are seen from my Application "Ubuntu on Windows". I have checked it (exemted) in WinConfig toolbar. What could be the problem here. Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 05 Jul 2022, 08:45 AM

Hi Mohammadmehdi,

 

 

You must configure the "Ubuntu on Windows" application to use the system proxy which is the Fiddler proxy when Fiddler catering is on. As this application is basically a WSL (Windows Subsystem for Linux) you can use the known Linux techniques for setting proxy.

For example, here is how to set a system-wide proxy through global environmental variables

export http_proxy=127.0.0.1:8888
export https_proxy=127.0.0.1:8888

 

 

Regards,
Nick Iliev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

risc
Top achievements
Rank 1
commented on 27 Nov 2024, 12:20 PM | edited

Does not work, no connection:

$ export http_proxy=127.0.0.1:8866
$ export https_proxy=127.0.0.1:8866
$ curl www.google.com
curl: (7) Failed to connect to 127.0.0.1 port 8866: Connection refused
Nick Iliev
Telerik team
commented on 27 Nov 2024, 12:50 PM

The default port for Fiddler Classic is 8888, while you have specified port 8866, which is the default port for Fiddler Everywhere. To ensure you are using the correct port, please check your Fiddler settings and use the specified port explicitly.
risc
Top achievements
Rank 1
commented on 27 Nov 2024, 12:51 PM

correct port, i checked it. working outside of wsl.
Nick Iliev
Telerik team
commented on 27 Nov 2024, 01:36 PM

If your Fiddler proxy is configured on 127.0.0.1:8866 and Fiddler is up and running (with capturing turned on) and curl returns Connection refused, either the WindCongig app is not exempt from the WinCongig option in Windows or another tool prevents the connection to the proxy server. The latter is more likely as it seems that you don't have a connection not only from WSL but also from curl, which indicates that the proxy is not working (or si limited by a third-party tool like firewall) at all.
risc
Top achievements
Rank 1
commented on 27 Nov 2024, 02:09 PM

when i curl from cmd.exe  i get an answer, when i curl from wsl terminal ssh i get no answer ...
Tags
Fiddler Classic Fiddler Everywhere Linux
Asked by
MOHAMMADMEHDI
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Share this question
or