pptp vpn for mobile
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?
How can I do that all traffic from OS go thought the remote server?
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?
Not knowing what device you are running I can't say.