Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Host (Source not destination) adress in NetworkAccessManager::post function



  • Hello. My computer have multiple ip adress. And i want to set which ip adress will be use in NetworkAccessManager::post function as a source ip. I set the destination address in qurl. But there is no place where I can set the source address.

    I want to specify the host address(source address not destination) I use when sending post requests.
    But unfortunately I couldn't find a suitable set function in the documentation of QNetworkRequest, QNetworkAccessManager etc. Do QNetworkAccessManager not have this ability?

    There are a lot of posts with similar questions but not exactly this questions. I'm sure there are others like me. Your answer will help a lot of people at all.

    Thanks!