w_complete': // 重置密码 $pre .= $default_pre .= 'user_resetpw_complete.htm'; break; case 'user_comment': // 我的首页评论 $pre .= $default_pre .= 'user_comment.htm'; break; case 'single_page': // 单页 $pre .= $default_pre .= 'single_page.htm'; break; case 'search': // 搜索 $pre .= $default_pre .= 'search.htm'; break; case 'operate_sticky': // 置顶 $pre .= $default_pre .= 'operate_sticky.htm'; break; case 'operate_close': // 关闭 $pre .= $default_pre .= 'operate_close.htm'; break; case 'operate_delete': // 删除 $pre .= $default_pre .= 'operate_delete.htm'; break; case 'operate_move': // 移动 $pre .= $default_pre .= 'operate_move.htm'; break; case '404': $pre .= $default_pre .= '404.htm'; break; case 'read_404': $pre .= $default_pre .= 'read_404.htm'; break; case 'list_404': $pre .= $default_pre .= 'list_404.htm'; break; default: // 首页 $pre .= $default_pre .= theme_mode_pre(); break; } if ($config['theme']) { $conffile = APP_PATH . 'view/template/' . $config['theme'] . '/conf.json'; $json = is_file($conffile) ? xn_json_decode(file_get_contents($conffile)) : array(); } // 加载绑定ID安装风格 !empty($json['installed']) and $path_file = APP_PATH . 'view/template/' . $config['theme'] . '/htm/' . ($id ? $id . '_' : '') . $pre; // 加载安装风格 (empty($path_file) || !is_file($path_file)) and $path_file = APP_PATH . 'view/template/' . $config['theme'] . '/htm/' . $pre; // 主风格下可安装多个子风格 if (!empty($config['theme_child']) && is_array($config['theme_child'])) { foreach ($config['theme_child'] as $theme) { if (empty($theme) || is_array($theme)) continue; // 加载绑定ID安装风格 $path_file = APP_PATH . 'view/template/' . $theme . '/htm/' . ($id ? $id . '_' : '') . $pre; // 加载安装风格 !is_file($path_file) and $path_file = APP_PATH . 'view/template/' . $theme . '/htm/' . $pre; } } // 风格不存在加载适配端 !is_file($path_file) and $path_file = APP_PATH . ($dir ? 'plugin/' . $dir . '/view/htm/' : 'view/htm/') . $default_pre; return $path_file; } // 依据模式返回适配文件 function theme_mode_pre($type = 0) { global $config; // 网站模式 $mode = $config['setting']['website_mode']; $pre = ''; // 首页文件前缀 if (1 == $mode) { // 门户模式 $pre .= 2 == $type ? 'portal_category.htm' : 'portal.htm'; } elseif (2 == $mode) { // 扁平模式 $pre .= 2 == $type ? 'flat_category.htm' : 'flat.htm'; } else { // 自定义模式 $pre .= 2 == $type ? 'index_category.htm' : 'index.htm'; } return $pre; } ?>向外网共享局域网的方法|江阴雨辰互联

向外网共享局域网的方法

向外网共享局域网的方法


2024年3月4日发(作者:图标logo免费一键生成器)

向外网共享局域网的方法

最近在研究内网共享文件给外网用户的方法,在网上找了很多工具,但不是不支持内网向外网共享就是要设置什么代理服务器,麻烦死了,全部都OUT!!终于今天让我找到解决方案了,嘿嘿,想知道吗!跟着店铺走啦,包你满意!

向外网共享局域网的方法如下:

内网环境:路由共享宽带,网内有三台电脑

软件工具:HTTP File Server 2.2f汉化版

目标:把本地硬盘的影片共享给外网的同学下载

如果是个人用户,单人用一条宽带,没有路由器,那么可以使用

HTTP File Server 或者 箫心Web个人临时共享服务器[WebFileShare](外网模式)直接共享本地文件或文件夹,但是如果是内网用户的话,使用箫心Web个人临时共享服务器就不太方便,因为要设置代理服务器,光是找代理服务器,那么多个代理服务器,应该选择哪个好,也不知道哪个失效没?很是麻烦!!

这里,我只需要简单设置一下路由器和 HTTP File Server 就可以实现向外网共享内网文件。

首先,打开IE浏览器(其它浏览器也行),地址栏输入 192.168.1.1

并回车,输入用户名和密码,打开路由设置界面,不同路由器打开设置界面的IP地址可能不一样,不过现在市面的路由上大多数是

192.168.1.1 ,不清楚的可以查看路由器上的贴纸或说明书。

依次单击“转发规则”→“DMZ主机”(如图)

在 DMZ主机 设置界面中输入要暴露给广域网的内网电脑的IP地址,比如这里我的电脑的内网IP是 192.168.1.101,在 192.168.1. 后面的文本框输入 101 ,勾选“启用”,然后点“保存”即可。

路由设置好,关闭设置界面。在要共享文件的电脑上运行 HTTP

File Server,依次单击“菜单”→“IP地址”→“查找外部地址”,

HTTP File Server便会开始检测此电脑的外网地址。

检测完毕,汇报检测出的IP地址。这里我的是 116.22.28.222,

理论上说,同一内网的所有电脑检测出来的外网地址是一样的。

在文件列表空格中右击,选择“添加文件”或“从磁盘添加目录”,这里我选择“从磁盘添加目录”

在弹出的窗口选择要共享的文件夹

确定后 HTTP File Server会询问要共享的文件夹是要作为虚拟目录还是要作为真实目录,为了同学的访问速度,我选择“真实目录”

右击列表中的文件夹或文件,选择“复制URL地址”或按Ctrl+C、复制地址栏中的地址,然后把地址发给对方。

对方只需要在浏览器中打开我们发给他的地址,用下载工具下载文件即可

另外, HTTP File Server有几个设置会影响对方的下载速度,如下图

限制菜单中的“速度限制”“最大并发下载数”和“防止反复连接(下载加速器)”


发布者:admin,转转请注明出处:http://www.yc00.com/xitong/1709503994a1631680.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信