Re: How to setup a Relay - WeOnlyDo Discussion board

Re: How to setup a Relay (General questions)

by wodDamir, Sunday, November 06, 2011, 15:24 (4577 days ago) @ Hamed

Hi Hamed,

First off, there's no client-server approach with wodVPN. wodVPN is a peer-to-peer component, and connection is *always* established directly.

In other words, you don't actually need a publicly accessible machine. However, if you do have one at disposal, then you can use it to setup a Mediator, which is used to exchange ID's, addresses and ports which will be used by each peer.

As for setting up a relay, all you need to do is use the wodVPN.Relays.Add(some_port_number). When connecting to a relay, you simply set Hostname and Port properties of a relay and call Connect method.

As for the terms you mentioned, let me try clarifying:

1. Channels - used in case you don't want whole network traffic to be redirected to other peer. It's same as Tunneling in SSH.
2. TCPHandler - used when UDP isn't acceptable / is blocked. UDP traffic is then re-routed internally and sent over TCP. However, UDP is still used internally
3. Relay - is set up on some publicly exposed host and used when connection doesn't succeed directly. In that case, both peers connect directly to the exposed host on the specified port. Data is then relayed through the machine that created a relay.

Hope this helps.

Regards,
Damba


Complete thread: