The following forum(s) are migrating to a new home on Microsoft Q&A (Preview): Developing Universal Windows apps!

Ask new questions on Microsoft Q&A (Preview).
Interact with existing posts until December 13, 2019, after which content will be closed to all new and existing posts.

Learn More

How to set Proxy in MessageWebSocket RRS feed

  • Question

  • I want to set proxy in MessageWebSocket..i got this "PasswordCredential ProxyCredential" but dnt uderstant how to set proxy url

    Example proxy:

    URL:- 127.0.01

    Port:- 8888

    UserName:- test1

    Password:- test123

    Tuesday, May 7, 2019 9:05 AM

All replies

  • Hello,

    Have you tried to set the proxy credential like this:

    Uri myuri = new Uri("");
                MessageWebSocket messagewebsocket = new MessageWebSocket();
                messagewebsocket.Control.ProxyCredential.UserName = "test1";
                messagewebsocket.Control.ProxyCredential.UserName = "password1";

    What's the error you get when you are connecting to a server under the proxy? Can you show more details to us?

    Best regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Wednesday, May 8, 2019 5:50 AM