开发者

Connect to a computer behind router in .net

We have a client server application which we开发者_如何学Go are developing in .net. We want the server to push data to client. But the client is behind a router (like a home network setup). What are the various options to implement this in .net?


Assuming the router includes NAT and Firewall, you need to configure the router to allow an inbound connection to be directed to the machine.


@Richard is correct, you're really asking about NAT. Another option is to have the client connect out to the server and pull in information that way.


The only way to push data to a client behind a router is if the client sets up some port forwarding on his router. Its something you'll generally want to avoid having to help the client configure.

Is it possible the client can instead periodically contact the server to check for data? In this scenario because the client makes an outbound connection it will be able to pull data back.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜