Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I am working in a remote desktop access in C#.
I have developed the project working a LAN in my office.

But how can I connect using WAN ip address?

When I connect to remote system give WAN ip that time I got error..


regards,
Saran.t
Posted
Updated 22-Oct-10 3:51am
v2
Comments
Dalek Dave 22-Oct-10 9:51am    
Edited for Grammar and Readability.

1 solution

 
Share this answer
 
Comments
Sandeep Mewara 22-Oct-10 12:12pm    
Comment from OP:
thanks Nijboer..

Here i don`t want to use RDP protocol .. its must want username and Password for remote server ..


so i don`t want to use that protocol..
i want to manually connect the remote server ...


1.Maually Forward the Port
2.How to connect the System behind the NAT
E.F. Nijboer 22-Oct-10 12:36pm    
You mean there is an application running on that remote system you want to connect to? Well, the idea is still the same. From any place outside the NAT the system isn't directly visible. Only the router is visible but it doesn't know what to do if someone tries to make a connection using port (for example) 12345. You must configure the router in a way so the router knows that a connection using port 12345 must be addressed to ip 192.168.1.1 in your NAT. That method is called port forwarding. You must think of the router as your remote system and the port that was configured must be used to connect. Port forwarding makes it possible to expose your remote system, but only for the port configured. I hope this makes it more clear.

Info with examples per router: http://portforward.com/

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