tags:

views:

141

answers:

1

I am doing projects using sockets,actually it runs in our environment without fail (LAN).

When I try to run it in the client side which employs the NAT in their environment my program fails(i.e) unable to connect to the server through the client program I created.

How to alter the program ? there is a Enum called SocketOption will it helps to solve my problem?

i want to transfer from a NATed Computer to a NATed Computer in the same network

want to set bounty for this question

A: 

After Searching through so many informations in the Net ,i found this information

NAT is not something you can ususaly programatically control. (There is UPNP, but I've never seen it work.) If you need to connect a client to a server which is behind a NAT you must manually configure the NAT device (router) to do port forwarding.

Link: http://blogs.msdn.com/ncl/archive/2009/07/27/end-to-end-connectivity-with-nat-traversal-.aspx

karthik