wisdom-projects / holer

Holer exposes local servers behind NATs and firewalls to the public internet over secure tunnels.
Apache License 2.0
2.04k stars 507 forks source link

nginx + windows10 Unable to connect holer server <192.168.1.103:6060> #25

Closed SilurianYang closed 3 years ago

SilurianYang commented 3 years ago

操作步骤

  1. 下载 holer-client-v1.2.zip

  2. 修改 holer-client\conf\holer.conf

    // holer.conf
    HOLER_ACCESS_KEY=HOLER_CLIENT-2A623FCB6E2A7D1D
    HOLER_SERVER_HOST=192.168.1.103
  3. 双击 startup.bat QQ截图20210529230409

  4. 访问 holer65532.wdom.net 重定向到 http://www.wdom.net/ 访问 holer.org:65532 如下图 QQ截图20210529230604

自我排除

  1. 关闭 windows 防火墙 无效
  2. netstat -ano|findstr "6060" 未找到端口
  3. 127.0.0.1 正常访问

holer-client/logs 日志

Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>
Unable to connect holer server <192.168.1.103:6060>

软件及设备

  1. Windows 10 专业版 64位
  2. nginx-1.18.0
  3. holer-client-v1.2
  4. java 版本
    C:\Users\16067>java -version
    java version "15" 2020-09-15
    Java(TM) SE Runtime Environment (build 15+36-1562)
    Java HotSpot(TM) 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)
WisdomFamily commented 3 years ago

用自搭建的holer服务端,需要设置HOLER_SERVER_HOST=公网IP,而且这个必须是公网IP地址,才能做公网访问本地。 如果是用公开的holer access key,不要设置HOLER_SERVER_HOST参数。