如何检测端口转发/映射的需求以及如何实现? [英] how to detect needs of port forwarding /mapping and How to Implement it ?

查看:131
本文介绍了如何检测端口转发/映射的需求以及如何实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用套接字开发p2p应用程序,我想在路由器后面连接远程计算机.

>>端口转发是解决此问题的唯一方法吗?
>>如果是这样,那么如何动态检测端口转发/映射的需求?
>>如何实施?


谢谢..
请帮助..

Hi everyone,

I am developing a p2p application using socket and i want to connect the remote computer behind the router.

>> Is port forwarding the only way to solve this problem ?
>> If so then how to detect dynamically needs of port forwarding /mapping ?
>> How to Implement it ?


thanks..
Please help..

推荐答案

端口转发是我所知道的唯一方法.我不知道您是否可以动态检测到它.端口转发是通过配置路由器来完成的:

http://en.wikipedia.org/wiki/Port_forwarding [ http://portforward.com/ [
Port forwarding is the only way I know of doing this. I don''t know if you can detect it dynamically. Port forwarding is accomplished by configuring your router:

http://en.wikipedia.org/wiki/Port_forwarding[^]

http://portforward.com/[^]


通常,端口转发是在防火墙中处理的-不在您的应用程序中.您不能依靠运行软件防火墙的人员,即使他们这样做,也无法保证它将成为您的程序支持的人员.除此之外,如果应用程序自行更改我的防火墙设置,我会认为这是一个巨大的安全违规行为,并且会一发不可收拾.
Typically, port forwarding is handled at the firewall - NOT in your application. You can''t rely on people running a software firewall, and even if they did, you can''t guarantee it will be the one that your program supports. Beyond that, I would consider it a HUGE security violation - and would be downright pissed off - if an application changed my firewall settings on its own.


这篇关于如何检测端口转发/映射的需求以及如何实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆