Re: VPN Multiple connection - WeOnlyDo Discussion board

Re: VPN Multiple connection (General questions)

by Nisha, Wednesday, September 10, 2008, 05:53 (5918 days ago) @ wodDamir

Hello,

Thanks for response.
As i have observed when user connects to Mediator.. then MediatorConnected event is getting fired and it is having user's IP and port too..so just to confirm and make sure, Are talking for userconnected or mediatorconnected event?

And i have tried to create new instance in mediatorconnected event too as you said below in loadNewVPN..connection can be established even but then if we try to connect another user then mediatorconnected event is not getting fired for another user.

Please let me know your comments/views for this above.

Regards,
Nisha

Nisha,

Nope, UserConnected will be fired when user connects to Mediator. You will then be provided with user's IP, and port from which he is coming. Please check the following link on mediator info:

http://www.weonlydo.com/VPN/Help/Mediator.html

Simply implement a new procedure, something like:

--------------------------------------------------------
Private Sub LoadNewVPN(Hostname as string, Port as Integer) 'include any other needed parameters
'now initiate an instance
Dim wodVPN2 as wodVPNCom
Set wodVPN2 = new wodVPNCom
wodVPN2.HostName = Hostname
wodVPN2.Port = Port
wodVPN2.Connect
End Sub
--------------------------------------------------------

Please note that this is just a sample, and isn't a complete solution.

Regards,
Damba


Complete thread: