This is a migrated thread and some comments may be shown as answers.

Fiddler showing browser WebSockets, but not showing windows win32 app WebSocket connections?

4 Answers 2484 Views
Windows
This is a migrated thread and some comments may be shown as answers.
Navjot
Top achievements
Rank 1
Navjot asked on 25 Feb 2020, 09:39 AM

Hi,

 

I am trying to capture WebSocket connection of an app in windows (Win32).

I also created a test app with websocketsharp and connected to ws://echo.websocket.org and unfortunately this was not captured in fiddler.

Any help?

 

Fiddler version: v5.0.20194.41348 for .NET 4.6.1
Built: Thursday, October 3, 2019

4 Answers, 1 is accepted

Sort by
0
Navjot
Top achievements
Rank 1
answered on 25 Feb 2020, 09:41 AM
Fiddler showing browser WebSockets, but NOT* showing windows win32 app WebSocket connections?
0
Eric R | Senior Technical Support Engineer
Telerik team
answered on 27 Feb 2020, 05:03 PM

Hi Navjot,

Generally, Fiddler is a HTTP(S)/WebSocket proxy and doesn't visualize socket traffic that doesn't use those protocols. Typically, the traffic that can be captured is using the WinINET networking stack. See the Proxy documentation for more details.

However, if the win32 app doesn't rely on WinINET and uses WinHTTP instead, it may be possible to capture traffic as shown in the Using Fiddler with WinHTTP blog post.

I hope this helps. Please let me know if you need any additional information. Thank you for using the Fiddler Forums.

Regards,


Eric R | Senior Technical Support Engineer
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Navjot
Top achievements
Rank 1
answered on 27 Feb 2020, 06:37 PM

Unfortunately, it didn't worked.

 

You can also test out by making a simple websocketsharp c# application.

0
Eric R | Senior Technical Support Engineer
Telerik team
answered on 27 Feb 2020, 09:38 PM

Hi Navjot,

In order to capture traffic, the client should pass through the Fiddler Proxy endpoint, e.g., WinINET/WinHTTP or localhost:8888. Once the proxy information is set, the WebSocketSharp Example will capture. See the below code snippet and line number for reference.

Additionally, Fiddler can also capture the same traffic using http://websocket.org/echo.html in the browser. For reference, I have attached a short video displaying the results from the browser. 

Please let me know if you need any additional information. Thank you for using Fiddler. 

Regards,


Eric R | Senior Technical Support Engineer
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Windows
Asked by
Navjot
Top achievements
Rank 1
Answers by
Navjot
Top achievements
Rank 1
Eric R | Senior Technical Support Engineer
Telerik team
Share this question
or