From kde-devel Mon Sep 10 20:31:01 2018 From: Alexander Semke Date: Mon, 10 Sep 2018 20:31:01 +0000 To: kde-devel Subject: network connectivity with proxy Message-Id: <6742770.hSYWJ9bI2e () notebook> X-MARC-Message: https://marc.info/?l=kde-devel&m=153661153018646 Hi, in Knights and in LabPlot I realized recently, while being in a corporate network behind a proxy, that the connection to public internet servers is not possible. E.g. in Khights the connection to the FICS-server is done like QTcpSocket* socket = new QTcpSocket(this); socket->connectToHost(address, port); How to properly handle the proxy settings? Reading system settings (from the environment?) and calling QTcpSocket::setProxy() or QNetworkProxy::setApplicationProxy() somewhere in main.cpp doesn't sound to me like the "standard way to do this". In KDE's system settings there're already settings for the proxy. How to use them and how to deal with this on windows and mac os x where this is not available? Should the applications have this configuration in their settings? Regards, Alexander