Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am developing a generic solution like teamviewer and logmein where customer needs not to do port forwarding for remote desktop connection.I am unable to get remote of a computer from behind the router using Windows Desktop Sharing (WDS) API to create an invitation string.

Is this possible to get remote desktop on public internet using Windows Desktop Sharing (WDS) API and C#?

Please Give Some suggestions to do so.
Posted
Updated 13-Jun-15 20:17pm
v2

1 solution

Yes, but you have to configure your router to forward the traffic to the target machine.

Allow Remote Desktop connections from outside your home network[^]
 
Share this answer
 
Comments
Sanjeev236 14-Jun-15 2:15am    
Hi Dave, Thanks for sincere efforts for helping me out. I am developing a generic solution like teamviewer and logmein where customer needs not to do port forwarding.
Dave Kreskowiak 14-Jun-15 13:56pm    
Your application is going to have to be written to do it for the customer. There is simply no way around that.

It's done using what's called UPnP. There's an article here on CP that shows how to do it without using any libraries: http://www.codeproject.com/Articles/27992/NAT-Traversal-with-UPnP-in-C.

You can find more information about it: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=c%23%20router%20upnp

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900