开发者

client server app upnp / port forward question

开发者 https://www.devze.com 2023-03-13 18:47 出处:网络
I am thinking about writing a client server app usin开发者_运维百科g sockets in c#. My question is, if the server is behind a router and upnp is enabled, once the server starts listening does upnp aut

I am thinking about writing a client server app usin开发者_运维百科g sockets in c#. My question is, if the server is behind a router and upnp is enabled, once the server starts listening does upnp automatically forward data incoming to that computer if it is destined for said port? I don't want the user to have to start forwarding ports, I am hoping my server app can be zero configuration. Thanks in advance.


I worked on a uPNP tool a little while ago for a work application for file sharing across multiple sites.

I can confirm that during the port configuration via uPNP, that you do indeed specify which port and end point you would like to listen.

If uPNP reports back OK. All requests to the port will be forwarded to the passed end point.

I will find the class I made \ modified and give it as an example shortly....

0

精彩评论

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