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

can anyone of you please help me by telling a way to connect a LAN server to a WAN client, or a system in a remote place and send data from remote place system to LAN server?

Thanks and Regards
Nidhi

Changed tags to reflect what the question is about! - Ash
Posted
Updated 4-Jan-11 22:58pm
v3

What you need is to look at port forwarding/port triggering on the LAN the server is connected to.
What port forwarding does is when a connection attempt is made to a specific port on the public IP of the LAN the server is on the connection request get forwarded to the server, the forwarding has to be put into any modem and routers that is between the public connection and the server. The client MUST specify the public IP of the LAN the server is on NOT the servers local IP address.
 
Share this answer
 
Take a look at MSMQ.
.Net API[^]
C/C++ API[^]

Otherwise you can always create your own communication system using the Windows Socket 2 API[^]

Or use Windows Communication Foundation[^]

Regards
Espen Harlinn
 
Share this answer
 
have you ever heard about routers[^] ?
 
Share this answer
 
To amplify Rod and Emilio's answers a bit, do a search for some combination of "NAT", "port forwarding" and "IP address sharing". Your problem isn't uncommon and there a lot of networking admins that understand this stuff far better than most developers do.

Cheers,

Ash
 
Share this answer
 

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