Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. pptp vpn for mobile
Qt 6.11 is out! See what's new in the release blog

pptp vpn for mobile

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 1.7k Views 1 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.
  • F Offline
    F Offline
    Fogord
    wrote on last edited by
    #1

    Hi everyone,

    Kindly help me with the following task. I need to connect to the remote server. The connection needs to be implemented by pptp and all traffic from device should go through this server.

    I read about QNetworkProxy.

    QNetworkProxy proxy;
    proxy.setType(QNetworkProxy::Socks5Proxy);
    proxy.setHostName("some ip");
    proxy.setPort(port);
    proxy.setUser("user");
    proxy.setPassword("password");
    

    If I use the following code, will only my application requests go through the proxy server?

    QNetworkProxy::setApplicationProxy(proxy);
    

    How can I do that all traffic from OS go thought the remote server?
    I'm stuck.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, that's something you would have to do at the OS level so it's outside of Qt's scope.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Fogord
        wrote on last edited by
        #3

        SGaist, thank you.

        How do you think that openvpn will help me?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Not knowing what device you are running I can't say.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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