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. TCP Connection error: QAbstractSocket::ProxyConnectionTimeoutError
Forum Updated to NodeBB v4.3 + New Features

TCP Connection error: QAbstractSocket::ProxyConnectionTimeoutError

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 374 Views
  • 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.
  • Bruce.ZhangB Offline
    Bruce.ZhangB Offline
    Bruce.Zhang
    wrote on last edited by
    #1

    Hi guys,
    I use QTcpSocket to do the connection, it runs well in the other PCs, but recently a remote user reports the error when connecting: "QAbstractSocket::ProxyConnectionTimeoutError".
    The PC and Device's IP was in the same segment. PC can ping Device successfully.
    I wonder why the app reports this error when doing a connection?
    Thanks.

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Because the proxy settings are wrong on this computer.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Bruce.ZhangB 1 Reply Last reply
      0
      • Bruce.ZhangB Offline
        Bruce.ZhangB Offline
        Bruce.Zhang
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          Because the proxy settings are wrong on this computer.

          Bruce.ZhangB Offline
          Bruce.ZhangB Offline
          Bruce.Zhang
          wrote on last edited by
          #4

          @Christian-Ehrlicher Thanks for the reply, I'll let the customer check about it.

          1 Reply Last reply
          0
          • Christian EhrlicherC Online
            Christian EhrlicherC Online
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            If you don't need a proxy and want to make sure that your app does not use a proxy setting from the OS add

            QNetworkProxy::setApplicationProxy(QNetworkProxy());
            

            in your main.cpp

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            1 Reply Last reply
            1

            • Login

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