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. How to communicate through a SOCKS5-proxy with UDP?
QtWS25 Last Chance

How to communicate through a SOCKS5-proxy with UDP?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 10.4k 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.
  • S Offline
    S Offline
    sistux
    wrote on 7 May 2014, 09:21 last edited by
    #1

    I need to get a communication with UDP through a SOCKS5 proxy like a UDP-client.
    For that I use a QUdpSocket-object after the appropriate settings of the application proxy.
    There are no problems for TCP-connection or the UDP-connection without the proxy-settings.
    It should play a kind of ping-pong with udp-datagrams.
    But with the wireshark can be seen that the only tcp-connection to the socks5-proxy will be established.
    But after it there is no any activity:

    • initially my application should send 1st udp-packet
    • but after the write(..)-call nothing was sent from the application

    Can somebody help me or give me some reference?
    Thanks.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on 8 May 2014, 05:19 last edited by
      #2

      How have you configured QNetworkProxy?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sistux
        wrote on 8 May 2014, 09:13 last edited by
        #3

        Thanks for reply.

        The SOCKS-proxy is without authorisation
        @
        QNetworkProxy proxy;
        proxy.setType(QNetworkProxy::Socks5Proxy);
        proxy.setHostName(proxyAddress);
        proxy.setPort(proxyPort);
        QNetworkProxy::setApplicationProxy(proxy);
        @

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sistux
          wrote on 24 Jun 2014, 14:04 last edited by
          #4

          ... :(

          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