Signalr does not work with mobile data, but with wifi if it works RRS feed

  • Question

  • User1671865627 posted

    My application works correctly with wifi, but not with mobile data. I have seen in a thread that with longPolling is solved, but it is not my case.

    $.connection.hub.start({ transport: 'longPolling' }).done(function () {

    I have been debugging my application, and when I connect via 3g / 4g in the client list only the current client appears, while if I connect via wifi, all my clients are there.

    public static class UserHandler
        public static HashSet<string> ConnectedIds = new HashSet<string>();
    public override Task OnConnected()
        return base.OnConnected();
    public override Task OnDisconnected(bool stopCalled)
         return base.OnDisconnected(stopCalled);

    How is it possible that with wifi work and with 3g / 4g not?

    Any idea or solution of how to fix my problem?

    Thank you very much.

    Thursday, November 9, 2017 11:12 AM

All replies

  • User1671865627 posted

    Already of the thousand things that I have tried, I have chosen to try that the example Tutorial: Getting Started with SignalR 2 with mobile data (3g / 4g) and the same thing happens.


    It does not work with mobile data

    Thursday, November 9, 2017 11:55 AM
  • User61956409 posted

    Hi druidajes,

    According to your description, online users seems not display in user list if you switch from wifi to 3G/4G. I’d like to know whether other functionalities (such as broadcasting message to clients etc) work fine, or all functionalities do not work anymore?

    With Regards,

    Fei Han

    Friday, November 10, 2017 2:51 AM