开发者

Socket Programming Failed in NAT Networks

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 SocketOptio开发者_如何学Gon 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


After Searching for sometime , found this information

NAT is not something you can usually pro grammatically 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜