如何使用及何时观看来自远程接口的本地网络的图像LT; IMG SRC ="" /&GT ;? [英] How to view images of local network from remote interface when using <img src="" />?

查看:153
本文介绍了如何使用及何时观看来自远程接口的本地网络的图像LT; IMG SRC ="" /&GT ;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下网络设置:

         ___________> [Remote IP] * can access anything from 192.168.1.2.
        |                         * it has a public static ip to access as 8x.8x.2xx.1x
        |
        ^
      [WAN]
        |
     [Router]
        |
        |---[LAN]
        |
   [HTTP WEB SERVER]@192.168.1.2
        |
        |
  --------------------------------------------------- (LAN)
    |             |               |
  [PC1]         [PC2]           [PC3]
  |             |               |
  192.168.1.3   192.168.1.4     192.168.1.5

案例:

[OK]:PC1,PC2有可用的图像格式192.168.1.3:7007/picture1.jpeg和192.168.1.4:7007/picture1.jpeg

[OK ]: PC1, PC2 has image available form 192.168.1.3:7007/picture1.jpeg and 192.168.1.4:7007/picture1.jpeg

[确定]:PC3如果我从192.168.1.2打开网站,我可以看到图片1和图片2。正如我的HTML code是:

[OK ]: PC3 if i open the site from 192.168.1.2 i can see picture1 and picture2. As my HTML code is:

<img src="http://192.168.1.3:7007/picture1.jpeg?1323809545000?1323809546000?1323809547000" class="monitor_realtime" />

<img src="http://192.168.1.4:7007/picture1.jpeg?1323809545000?1323809546000?1323809547000" class="monitor_realtime" />

[NOT OK]:但是,如果我从现在公共场所远程打开网页我看不到图片

[NOT OK]: But if i now remotely from public location open the page i can not see the pictures.

我怎么能看到,当我远程打开它(本地浏览作品)?图片

How can i see pictures when i am opening it remotely (local browsing works)?

推荐答案

你是说,PC1和PC2也都有一个Web服务器上的端口7007上运行?如果是这样,presumably路由器不转发请求的Web服务器。如果您计划访问托管的局域网上的内容,则路由器必须知道这些请求转发到相关服务器。

Are you saying that PC1 and PC2 also both have a Web server running on port 7007? If so, presumably the router does not forward requests to those Web servers. If you plan to access content hosted on a LAN, then the router must know to forward those requests to the relevant server.

修改:根据您的评论提供给m4tt1mus的回答情况下,你需要去的第二个选项。你可以设置路由器端口81转发到PC1和端口82的端口7007到PC2的端口7007。

EDIT: Based on context provided in your comment to m4tt1mus' answer, you'd need to go with the second option. You could set up the router to forward port 81 to port 7007 of PC1 and port 82 to port 7007 of PC2.

这篇关于如何使用及何时观看来自远程接口的本地网络的图像LT; IMG SRC =&QUOT;&QUOT; /&GT ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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