There are 3 steps to accomplish a reverse connection to overcome NAT/Firewalls:
On the RDPSession side create an invitation
RDPSession session = new RDPSession(); session.Open(); string hostConnString = session.Invitations.CreateInvitation(null, "My Group Name", "12345", 1)
On the RDP viewer side you initiate a reverse connect
string viewerConnString = axRDPViewer1.StartReverseConnectListener(hostConnString, "My Name", "12345");
Back on the RDP session side connects to the viewer
session.ConnectToClient(viewerConnString);
Here my question: on Step #2 to initiate start reverse connect, StartReverseConnectListener()
. Where should I call this method? Is it on OnConnectionFailed
event after the standard viewer connect has failed or is it just always replacing the standard viewer connect method.
On Step #3. which event on the host RDP
session should I place this call so that seamlessly connects the client
(viewer).