Unsolved QNetworkAccessManager and VPN
-
No, I don't want my application restart because of the network state change.
-
Hi,
Is that server accessible outside of the VPN ?
If so, is it using the exact same address ? -
Gut feeling is that you have to use a new QNetworkAccessManager.
-
@SGaist Yes, the server is accessible from both network conditions.
It is a very simple Http server with a valid public IP. -
@koahnig I think the QNetworkAccessManager has roaming capability that can adapt connection based on network conditions.
-
Roaming and killing a connection is not exactly the same.
Creating a new QNAM is worth a try though.
By the way, what version of Qt are you using ?
On what OS ? -
@SGaist Windows 7 and Qt 5.12.3
-
You should also test with a more recent version of Qt.
By the way, how exactly are you switching from VPN to normal connection ?
-
@SGaist Through a TAP Windows Adapter V9.
-
Can you explain that with more details.
-
This post is deleted!