pptp vpn for mobile



  • 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.


  • Lifetime Qt Champion

    Hi,

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



  • SGaist, thank you.

    How do you think that openvpn will help me?


  • Lifetime Qt Champion

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.