Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved]Can proxy cause "connection timed out"?
Forum Updated to NodeBB v4.3 + New Features

[solved]Can proxy cause "connection timed out"?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 4.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mady
    wrote on last edited by
    #1

    I am using QNAM to download a XML file from server but getting “connection timed out” error message in reply. In some mail thread I saw some was asking about proxy. My program is behind a corporate proxy, can it cause this issue? If yes, could you please let me know how to resolve the problem?

    Note: Through browser I can access the page successfully.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      Did you set the proxy in your Qt application? Did you check if there's anything strange going on by using a network sniffer?

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mady
        wrote on last edited by
        #3

        I did not do anything related to proxy in my application. I don't know what to check or how to check. I just checked NetworkReply and found "connection timed out".

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dangelog
          wrote on last edited by
          #4

          Is your company's proxy set as a system wide proxy? If so, did you call

          @
          QNetworkProxyFactory::setUseSystemConfiguration(true)
          @

          from your code? (If not, of course, you have to create and set a QNetworkProxy for your application, because Qt has no way to know that you're behind a proxy server).

          Software Engineer
          KDAB (UK) Ltd., a KDAB Group company

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mady
            wrote on last edited by
            #5

            Thanks a lot peppe.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved