如何在网络连接中使用App Tethering? [英] How to use App Tethering with internet connection?
问题描述
我正在使用Embarcadero RAD Studio Delphi XE8.
I'm using Embarcadero RAD Studio Delphi XE8.
Multi-Device Application app绑定组件是为传统的WiFi和蓝牙耦合而设计的.它也支持Internet连接吗?
Multi-Device Application app tethering components are designed for traditional WiFi and Bluetooth coupling. Does it support also Internet connections?
我想尝试制作小型的p2p应用程序.我正在通过Wifi使用App共享,但我想通过互联网连接App共享.
I would like to try to make small p2p app. I'm using App tethering via Wifi but I would like to connect App tethering via internet connection.
该怎么做?
推荐答案
是的,还支持TCP/IP(LAN和Internet).文档中对此进行了明确说明.
Yes, TCP/IP (LAN and Internet) is also supported. This is clearly explained in the documentation.
应用共享功能不依赖于特定的传输或协议,可以使用应用共享API实现新的传输和协议. RTL为IP和经典蓝牙连接提供内置支持. IP支持包括连接在同一设备上运行的应用程序.
The app tethering feature does not depend on a specific transport or protocol, and new transports and protocols can be implemented using the app tethering API. The RTL provides built-in support for IP and Classic Bluetooth connections. IP support includes connecting applications running on the same device.
IP连接不仅限于WiFi. WiFi只是与LAN的无线连接,就像以太网是用于有线连接一样.不论使用哪种连接,IP都一样.
IP connections are not limited to WiFi only. WiFi is just a wireless connection to a LAN, much like Ethernet is for wired connections. IP works the same regardless of the type of connection used.
使用应用程序捆绑|连接到远程应用程序|连接到子网外的应用程序
默认情况下,
AutoConnect
和DiscoverManagers
都在运行应用程序的设备所在的局域网(LAN)的子网上执行发现.
By default, both
AutoConnect
andDiscoverManagers
perform the discovery on the subnet of the local area network (LAN) where the device running your application is.
但是,您可以使用其可选参数Target
覆盖此行为,并指定IP地址或子网:
However, you can use their optional parameter Target
to override this behavior, and specify an IP address or subnet:
-
要指定用于搜索远程管理器的IP地址,请将该IP地址指定为
Target
.
要指定IP地址的子网,请指定第四个数字为0的IP地址.例如,如果您将"192.168.4.0"指定为目标,则您的经理将在192.168.4.x子网中搜索远程经理.注意:您不能指定更大的子网.例如,不支持"192.168.0.0".
To specify a subnet of IP addresses, specify an IP address with a 0 as its fourth number. For example, if you specify "192.168.4.0" as the Target, your manager searches the 192.168.4.x subnet for remote managers. Note: You can not specify wider subnets. For example, "192.168.0.0" is not supported.
这篇关于如何在网络连接中使用App Tethering?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!