Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-60975

QTcpSocket and proxy server configured in windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.8.0
    • Fix Version/s: None
    • Component/s: Network: Proxies
    • Labels:
      None
    • Environment:
      Windows 7.

      Description

      I am using Qt 5.8 and windows 7 OS.

      I have written below code which is working fine when proxy server in windows is not configured. If we configured proxy server with "IP address" and "port" then below code is not working and it gives "Operation not permitted" on Qt creator application output when we bind the socket.

       

       

      QTcpSocket socket;
      quint16 port = 0L;
      socket.bind(0, QTcpSocket::ShareAddress);
      port = socket.localPort();
      

       

      When we configured proxy server in windows through "LAN Settings" then it is giving "0" as port number and we not configured proxy server then it gives correct random port number.

       

      Can you please suggest what is wrong ? Is this known issue ?

       

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                tpochep Timur Pocheptsov
                Reporter:
                neel5481 Neel Patel
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes