Re: How to setup a Relay - WeOnlyDo Discussion board

Re: How to setup a Relay (General questions)

by Hamed, Wednesday, November 09, 2011, 11:41 (4761 days ago) @ woddrazen

Thanks Drazen


Basically this is full code you need to use on some machine to start relay:
[code]Set vpn = New wodVPNCom

vpn.Password = somepassword
vpn.Relays.Add 3003[/code]
both peers should then inside Connect Method use IP of relay and Port (in this case 3003) to connect to other peer over relay.

Drazen

It works, relay is prefect but how can I redirect a port from my local computer to the relay port?

I've checked this:
[code]wodVPN1.Channels.Add TCPLocalListen, 127.0.0.1 , 5000 , VpsIP, 3003[/code]
but I've got errors, any idea?

Thanks and regards,
Hamed


Complete thread: