USE YSFLIGHT with the UDP protocol
- vincent
- Contributor
- Posts: 202
- Joined: Wed Feb 02, 2011 7:31 pm
- Favorite Aircraft: virtual ones
- Location: Toulouse, France
- Has thanked: 1 time
- Been thanked: 25 times
- Contact:
USE YSFLIGHT with the UDP protocol
The User Datagram Protocol (UDP) is one of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet.
UDP uses a simple transmission model without implicit hand-shaking dialogues for guaranteeing reliability, ordering, or data integrity. Thus, UDP provides an unreliable service and datagrams may arrive out of order, appear duplicated, or go missing without notice. UDP assumes that error checking and correction is either not necessary or performed in the application, avoiding the overhead of such processing at the network interface level. Time-sensitive applications often use UDP because dropping packets is preferable to waiting for delayed packets, which may not be an option in a real-time system. If error correction facilities are needed at the network interface level, an application may use the Transmission Control Protocol (TCP) or Stream Control Transmission Protocol (SCTP) which are designed for this purpose.
source: Wikipedia
How to tunnel TCP connections to UDP and vice-versa?
Let's say you have a server set on theserver.com:7915 and we have said the users they can use the port 7916 to connect trough UDP.
So, the server must listen on port 7916 and tunnel the information to 7915, and the client must listen on port 7915 and tunnel on port 7916.
There are several ways to do it:
- UNIX users
-> with socat:
---> for the server:
socat udp4-listen:7916 tcp4:127.0.0.1:7915
---> for the client:
socat tcp4-listen:7915 udp4:theserver.com:7916
-> With netcat:
---> for the server:
mkfifo /tmp/fifo # we need to create a fifo to have two-way communication between the two channels
sudo nc -l -p -u 7916 < /tmp/fifo | nc 127.0.0.1 7915 > /tmp/fifo
---> for the client:
mkfifo /tmp/fifo
sudo nc -l -p 7915 < /tmp/fifo | nc -u theserver.com 7916 > /tmp/fifo
- Windows users
-> with Netcat (not tested)
--> for the server:
netcat -L 127.0.0.1:7915 -p -u 7916 -vvv
--> for the client:
netcat -L -u theserver.com:7915 -p 7916 -vvv
Else, you can find others programs with a Google search...
- Eric
- Senior Veteran
- Posts: 1540
- Joined: Thu Feb 10, 2011 5:30 am
- Favorite Aircraft: Super Hornet
- Location: Chicago, Illinois
- Has thanked: 60 times
- Been thanked: 165 times
- Contact:
Re: USE YSFLIGHT with the UDP protocol
- Danny
- Contributor
- Posts: 474
- Joined: Thu Feb 10, 2011 10:33 pm
- Favorite Aircraft: F-86 Sabre
- Location: UK
- Has thanked: 89 times
- Been thanked: 71 times
Re: USE YSFLIGHT with the UDP protocol
Has anyone tried this with any success? I think it could potentially solve the age-old distance lag problem.
- Martin-Dutchie
- Contributor
- Posts: 482
- Joined: Sun Feb 06, 2011 5:13 pm
- Favorite Aircraft: F-20A Tigershark
- Location: Somewhere between the dykes
- Has thanked: 55 times
- Been thanked: 38 times
Re: USE YSFLIGHT with the UDP protocol
- Eric
- Senior Veteran
- Posts: 1540
- Joined: Thu Feb 10, 2011 5:30 am
- Favorite Aircraft: Super Hornet
- Location: Chicago, Illinois
- Has thanked: 60 times
- Been thanked: 165 times
- Contact:
Re: USE YSFLIGHT with the UDP protocol
- Flake
- VFA-49
- Posts: 4358
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 838 times
- Been thanked: 1248 times
- Contact:
Re: USE YSFLIGHT with the UDP protocol
It's a shame YSF doesn't use UDP instead of TCP natively. If soji wished it to happen, I'd gladly help him.
- Scarecrow
- Senior Veteran
- Posts: 1264
- Joined: Thu Feb 03, 2011 3:08 am
- Favorite Aircraft: T-50B
- Location: IND
- OS: Windows
- Has thanked: 61 times
- Been thanked: 288 times
Re: USE YSFLIGHT with the UDP protocol
However, it was a very good attempt and I applaud his efforts.
"si hoc legere scis nimium eruditionis habes"

Who is online
Users browsing this forum: No registered users and 16 guests