Re: How wodVPN Works? - WeOnlyDo Discussion board

Re: How wodVPN Works? (General questions)

by Diab, Tuesday, June 26, 2012, 17:59 (4531 days ago) @ woddrazen

Diab,


Here is code snippet how to start your own mediator.
[code]WODVPNCOMLib.wodVPNCom med;
private void Form1_Load(object sender, EventArgs e)
{
med = new WODVPNCOMLib.wodVPNCom();
med.MediatorConnected += new WODVPNCOMLib._IwodVPNComEvents_MediatorConnectedEventHandler(med_MediatorConnected);
med.Mediator.Start(WODVPNCOMLib.SearchEnum.SrchUDPSingle,8000);
}

void med_MediatorConnected(string IP, int Port, string FromID, string ToID, string Data, ref bool Allow)
{
Allow = true;
}[/code]
You need to point peers to connect to your mediator inside Search Method.

Let us know how it goes.


Drazen

this code didn't work with me.
We have a firewall in my server and working on Port 90 only(Port 90 opened )
is this a problem to the application ????
and any suggestion would help me in this problem

Regards,
Diab


Complete thread: