There is a client who wants to send a datagram to the server , but he is a proxy , that's the problem.

Of course, there is a proxy with Socks4,5 (but, as far as I know, these are special cases) the connection is interested in the http proxy.

UPD: In the case of Tcp, everything is quite simple: when connecting to a proxy, we specify CONNECT> Host: ... in the request and work with the proxy> GET> Host: ...,

But how to connect to a server running over UDP?

  • @michael, please specify. Are you interested in how to write such a proxy yourself (and which server?)? Or how to set up something specific, but not voiced by you? - avp
  • No, you need to connect to the server through a proxy. - Michael
  • one
    What does "establish connection" mean in the case of UDP? - alexlz
  • Implement the ability to send data receipt. - michael
  • So you already have a proxy? Which one If he does not allow this, then what will you do? If there is an opportunity to rearrange, then (I don’t remember socks4-socks5) maybe these? Or any router c NAT / ip maskerading? - alexlz

1 answer 1

But how to connect to a server running over UDP?

Impossible. Basically. You can open the port and wait for incoming packets. You can send a packet, it will go away and the recipient can receive it. No more.

There is a client who wants to send a datagram to the server, but he is a proxy, that's the problem.

Impossible. http-proxy works on TCP protocol. He listens to the TCP port (3128, 8080, etc.). Just the HTTP protocol basically works via TCP (except for some cases) and you can’t do anything about it.

  • About establishing a connection, this is what I know: I meant sending a packet through a proxy. And thanks for the second, but can you not ask the proxy to open the udp tunnel? - michael
  • After all, even the same online toys are used to communicate with the server - udp, and the proxy is not a hindrance. - Michael
  • one
    Interference They either work through NAT and not a proxy, or switch to tcp, or they use not http, but socks5 proxies. - mantigatos