zoukankan      html  css  js  c++  java
  • frp支持httpIP地址加端口号访问

    (一)安装就不再多说
    传送门:https://blog.csdn.net/superljn/article/details/81289993
    (二)vim frps.ini
    [common]
    bind_port = 7002 //与客户端连接端口 (自定义)
    max_pool_count = 5 //最大连接数(自定义)
    authentication_timeout = 900 //超时时间(自定义)
    [web]
    listen_port = 6064 //访问http时使用的端口(自定义)
    auth_token = 123123123 //身份验证(自定义)
    启动frpc并放入后台
    nohup ./frps -c ./frps.ini &
    (三)vim frpc.ini
    [common]
    server_addr = xxx.xxx.xxx.xxx //公网IP
    server_port = 7002 //与公网建立连接的端口号
    auth_token = 123123123 //身份验证与公网相同

    [web]
    type = tcp //协议(使用tcp是不使用域名直接IP加端口号便可以访问web)
    local_ip = 127.0.0.1 //本地IP地址
    local_port = 8080 //本地web端口号
    remote_port = 6064 //和服务端相同
    启动frpc并放入后台:
    nohup ./frpc -c ./frpc.ini &
    验证:
    在浏览器输入:公网IP:6064

    一个时间问题客户端与服务端最大时间差不能超过15分钟
    第二个就是阿里云或者各种云的安全组要开放你所暴露的端口
    ---------------------
    作者:superljn
    来源:CSDN
    原文:https://blog.csdn.net/superljn/article/details/81449965
    版权声明:本文为博主原创文章,转载请附上博文链接!

  • 相关阅读:
    POJ 2348 Euclid's Game【博弈】
    POJ 2484 A Funny Game【博弈】
    HDU 4193 Non-negative Partial Sums【单调队列】
    占坑补题
    Codeforces 658D Bear and Polynomials【数学】
    Codeforces 658C Bear and Forgotten Tree 3【构造】
    Codeforces 658B Bear and Displayed Friends【set】
    POJ 1704 Georgia and Bob【博弈】
    1001. A+B Format

  • 原文地址:https://www.cnblogs.com/dsliang/p/10722374.html
Copyright © 2011-2022 走看看