简体   繁体   English

如何在Delphi XE2上实现uPnP

[英]How to Implement uPnP on Delphi XE2

I have a Http server implemented using indy TidHTTPServer on Delphi XE2. 我有一个使用Delphi XE2上的indy TidHTTPServer实现的Http服务器。 This product is mostly used for intranet, however sometimes it is needed to be accessed from internet also. 该产品主要用于Intranet,但是有时也需要从Internet访问它。 The target customers are small companies, and for this PnP capabilities is a must. 目标客户是小公司,为此PnP功能是必须的。

For internal use this server uses the current IP from the server and try to assign the port 8888. 供内部使用,该服务器使用服务器上的当前IP并尝试分配端口8888。

I want to discover a wandevice on the network that can let me ask for port routing. 我想在网络上发现一个wandevice,可以让我请求端口路由。 I am not sure port routing is the best solution either, I am not familiar with the possibilities. 我不确定端口路由也不是最好的解决方案,我对这种可能性并不熟悉。 However I prefer the most widely available possibilities, since I believe not all routers have full options. 但是,我更喜欢最广泛使用的可能性,因为我相信并非所有路由器都有完整的选择。

For these case I am considering common routers, like linksys, tplink, etc, that comes with DSL installations, widelly used on small companies. 对于这些情况,我正在考虑DSL安装随附的通用路由器,例如linksys,tplink等,这些路由器广泛用于小型公司。

If there is a link for a component or source code that already implement this even better. 如果有一个组件或源代码的链接已经实现了,那就更好了。

UPnP Delphi components seem to be available UPnP Delphi组件似乎可用

A description of UPnP basics and links to source examples are available here 此处提供了UPnP基础知识的描述和源示例的链接。

Related question about device discovery using Indy: 有关使用Indy进行设备发现的相关问题:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM