Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Network Sockets + VPN Issue
Forum Updated to NodeBB v4.3 + New Features

Network Sockets + VPN Issue

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 782 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    steveq
    wrote on last edited by
    #1

    Hey Gurus,

    I have written a network chat program which consist of a server and client. Actually I'm really happy with it as it works a treat, and includes file transfers, encryption etc.

    I am having an issue though. If someone connects to the server using a client, it runs for days without an issue, however, if they switch over to a VPN during that time, randomly the client will crash, and/or cause the server to crash. Now I understand why this may happen, having the network pulled out from underneath it and then reinstated via a VPN, but I don't get any indication that this has happened. No SocketError signal, no SocketState signal, nothing.

    How can I do a clean disconnect from my server, if I don't know the user has done this?
    How can I allow for this instance?

    Would anyone have any ideas please?

    Thanks so much!

    Steve Q. :-)

    Pablo J. RoginaP 1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      and you've open sourced your app and put it on a public git server, right?

      I light my way forward with the fires of all the bridges I've burned behind me.

      S 1 Reply Last reply
      0
      • Kent-DorfmanK Kent-Dorfman

        and you've open sourced your app and put it on a public git server, right?

        S Offline
        S Offline
        steveq
        wrote on last edited by
        #3

        @Kent-Dorfman no not at all. Not sure why I would do that? I don't want my code public. I'm a rank amateur and I'm sure people would run a mile if they saw my source. Lol :-)

        1 Reply Last reply
        0
        • Kent-DorfmanK Offline
          Kent-DorfmanK Offline
          Kent-Dorfman
          wrote on last edited by
          #4

          If the app was open sourced then you may get useful responses about the problems you described. I'm not sure that folks with the expertise necessary to answer your arguably sophisticated question feel right about solving your problems for what comes across as a commercial endeavor. At least that's my suspicion.

          I light my way forward with the fires of all the bridges I've burned behind me.

          S 1 Reply Last reply
          0
          • Kent-DorfmanK Kent-Dorfman

            If the app was open sourced then you may get useful responses about the problems you described. I'm not sure that folks with the expertise necessary to answer your arguably sophisticated question feel right about solving your problems for what comes across as a commercial endeavor. At least that's my suspicion.

            S Offline
            S Offline
            steveq
            wrote on last edited by
            #5

            @Kent-Dorfman no it's not a commercial endeavour at all. Actually I wrote it to keep in contact with my family and friends, some of whom don't have, nor want social media (my 80 year old parents for example), thus excluding Messenger and the like. Plus it was a steep learning curve for me. Also I had a spare Raspbery Pi I could use as a server, so I had a play with cross compiling the server under Linux. So no, your suspicion is incorrect, it's not commercial.

            1 Reply Last reply
            0
            • S steveq

              Hey Gurus,

              I have written a network chat program which consist of a server and client. Actually I'm really happy with it as it works a treat, and includes file transfers, encryption etc.

              I am having an issue though. If someone connects to the server using a client, it runs for days without an issue, however, if they switch over to a VPN during that time, randomly the client will crash, and/or cause the server to crash. Now I understand why this may happen, having the network pulled out from underneath it and then reinstated via a VPN, but I don't get any indication that this has happened. No SocketError signal, no SocketState signal, nothing.

              How can I do a clean disconnect from my server, if I don't know the user has done this?
              How can I allow for this instance?

              Would anyone have any ideas please?

              Thanks so much!

              Steve Q. :-)

              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @steveq said in Network Sockets + VPN Issue:

              if they switch over to a VPN during that time, randomly the client will crash, and/or cause the server to crash

              Have already capture network traffic (at the server side for example) for the OK connections and the offending ones (when using VPN)?
              I guess that will help you compare what's going on in both cases...

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved