美文网首页
外网访问本地电脑文件,利用公网ip

外网访问本地电脑文件,利用公网ip

作者: 月落3804 | 来源:发表于2018-12-12 15:59 被阅读0次

    安装完pip后,执行命令

    pip install wsgidav cheroot
    

    设置电脑访问的某个目录 e盘:e:\

    wsgidav --port=8080 --host=0.0.0.0 --root=e:\\
    

    本地电脑浏览器访问

     http://127.0.0.1:8080
    

    利用公网ip 设置访问

     ssh -R 0.0.0.0:25120:127.0.0.1:8080 xxxxx@my.yueliang.com -p25119
    

    外网浏览器访问

    http://my.yueliang.com:25120/
    

    相关文章

      网友评论

          本文标题:外网访问本地电脑文件,利用公网ip

          本文链接:https://www.haomeiwen.com/subject/jaqphqtx.html