如何将数据发送到共享ip中的系统 [英] how can i send data to a system in a shared ip

查看:137
本文介绍了如何将数据发送到共享ip中的系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里我的目标是通过互联网将图像/数据从一个系统发送到另一个系统简单地通过提供本地IP但是当来到互联网时我面临一个问题,如果共享一个ip我怎么能指定一个系统





eg



这里我系统的IP



117.206.57.1​​20



我想发送数据给



117.206.57.1​​21



但是如果不共享ip它可以工作但是如果ip是共享的



117.206.57.1​​21包含



192.168.0.2

192.168.0.3

192.168.0.4

192.168.0.5



我想发送数据到192.168.0.3





我怎样才能实现这个目标





[192.168.1.3] 117.206.57.1​​20到117.206.57.1​​21 [192.168 .1.2]

Here my aim is to send image/data from one system to another over internet in lan its simple by giving local ip but when comes to internet i face a problem if an ip is shared how can i specify a system


eg

here ip of my system

117.206.57.120

and i want to sent a data to

117.206.57.121

but if the ip is not shared it works but if ip is shared

117.206.57.121 contains

192.168.0.2
192.168.0.3
192.168.0.4
192.168.0.5

and i want to send data to 192.168.0.3


how can i achieve this


[ 192.168.1.3 ] 117.206.57.120 to 117.206.57.121 [ 192.168.1.2 ]

推荐答案

您无法从代码中执行任何操作。客户端的路由器必须配置为将指定IP和端口上的流量转发到网络内的系统。如果您可以控制当前正在运行的语音,则可以添加UPnP代码进行设置。如果没有,您无法从最终选择目标系统。
You can't do anything from your code. The router on the client side has to be configured to forward the traffic on the specified IP and port to the system inside the network. If you have control over the voice the current is running them you can add UPnP code to set this up. If not, there's nothing you can do to select the target system from your end.


这篇关于如何将数据发送到共享ip中的系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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