wangyu- / tinyfecVPN

A VPN Designed for Lossy Links, with Build-in Forward Error Correction(FEC) Support. Improves your Network Quality on a High-latency Lossy Link.
MIT License
2.28k stars 457 forks source link

2 clients 1 server? #64

Open syadnom opened 5 years ago

syadnom commented 5 years ago

Is it possible to have 2 clients connect to 1 server? I'm using this connection string: ./tinyvpn_amd64 -c -rServerIP:4096 -f20:20 -k "passwd" --sub-net 10.1.0.0 --keep-reconnect --mode 1

The server gets ip 10.1.0.1 The first client gets 10.1.0.2 The second client also gets 10.1.0.2

The server then shows alternating 'new connection from' with each client's IP address. I don't see an option to set the IP address in the server or client.

syadnom commented 5 years ago

I can run 2 separate instances on different ports, but this is a bit tedious to setup for many clients.

I'm testing this specifically to resolve dropped or late packets for remote PBX and to handle lost packets when there is a re-route (ie, WAN > LTE switchover on WAN failure, a packet or two is dropped)

wangyu- commented 5 years ago

Is it possible to have 2 clients connect to 1 server?

No, as it said in readme.md:

Currently one server supports only one client. For multiple clients, start multiple servers.

If you want to have multiple clients with 1 server, you can use UDPspeeder+ any other udp-base VPN you are familiar with (for example: OpenVPN, l2tp). UDPspeeder is the udp proxy version of tinyfecVPN, it will turn any existing udp-base vpn into a fec VPN.