question

MangoApps-1236 avatar image
0 Votes"
MangoApps-1236 asked RichardZhang-MSFT commented

UWP MessageWebSocket not working behind firewall

My UWP MessageWebSocket not working behind a firewall...
FYI:- Ports and URL is allowed
In Settings-Proxy when I enable "Automatically Detect settings" then getting the error "Forbidden (403). (Exception from HRESULT: 0x80190193)"
when I disable "Automatically Detect settings" :- able to connect

So need to add any setting for the firewall?

Code:-
4591-tinytake16-03-2020-06-56-01-637199619779745236.png


windows-uwp
· 9
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, If you turn off the Automatically Detect settings, you can make a WebSocket connection, which means that there is no problem with the code, but it may be the reason for the local network settings. If you are using a local server, this is not recommended in UWP, because UWP applications have a local network loopback and cannot access localhost in the released state.

0 Votes 0 ·

we are not using local server.. and my HTTPS call is working well just MessageWebSocket is not working behind a proxy when Automatically Detect settings On

0 Votes 0 ·

UWP use same proxy settings with the system. If Automatically Detect settings is turned on, WebSocket cannot be connected. This is related to the specific agency method, It is recommended not to enable this feature.

0 Votes 0 ·
Show more comments

0 Answers