{"repo":"jonhoo/udp-over-tcp","free":true,"listed":false,"github":"https://github.com/jonhoo/udp-over-tcp","clone":"git clone https://github.com/jonhoo/udp-over-tcp.git","description":"A command-line tool for tunneling UDP datagrams over TCP.","language":"Rust","stars":131,"topics":["command-line-tool","networking","tcp","udp"],"license":"Apache-2.0","category":"networking-infra","readme_excerpt":"udp-over-tcp A command-line tool for tunneling UDP datagrams over TCP. It is particularly useful for [tunneling UDP over SSH][so] The tool was designed primarily for the use-case where you have two applications that need to talk to each other over UDP without an obvious client-server relationship. That is, either application may initiate a packet, and must be configured with the address of the other at start-up (i.e., ports cannot be random). You run udp-over-tcp on both applications' hosts. Each instance acts as a kind of local replica on the application running on the other. If the application on one host listens on UDP port P, then udp-over-tcp will listen on UDP port P on the other host, and ensure that traffic to the replica P goes to the real application's port P. Crucially, udp-over-tcp will do this for both applications' ports at the same time and bond the ports. It will effectively \"pretend\" that each application is running locally to the other. Concretely, if the application on one host sends a datagram from its port P to (local replica) port Q, the datagram will arrive at the real (remote) application's port Q with a source port of P . This means that an application always sees the same single address (localhost) and port (the other application's port), and that same address-host pair can also be used in the peer configuration for the application. Hopefully the following diagram can aid in understanding the setup udp-over-tcp configures: [ ][diag] Installation The ","default_branch":null,"files":null,"tree":[],"storefront":"/r/jonhoo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jonhoo/udp-over-tcp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}