Ngrok centos server setup: windows Client Setup details, ngrokcentos 
 
 Ngrok centos server setup: windows client settings 
 
 GOOS = windows GOARCH = amd64 make release-client
 Copy the compiled ngrok.exe to the windows computer,
 
 Create a new ngrok.cfg on windows
 
 server_addr: "test.com:7443"
 trust_host_root_certs: false
 Create a startup.bat on windows
 
 ngrok -config = ngrok.cfg -subdomain map local domain name local port
 Such as ngrok -config = ngrok.cfg -subdomain t1 8081
 
 Start start.bat,
 
 Extranet domain name access
 https://t1.test.com:8234
 The address mapped to the local is
 https://127.0.0.1:8081
 
 An example of a complex configuration file:
 
 server_addr: "myngrok.com:8083"
 trust_host_root_certs: false
 
 tunnels:
   http:
     subdomain: "www"
     proto:
       http: "8081"
 
   https:
     subdomain: "www"
     proto:
       https: "8082"
 
   web:
     proto:
       http: "8050"
   tcp:
     proto:
       tcp: "8001"
     remote_port: 5555
 
   ssh:
     remote_port: 2222
     proto:
       tcp: "22"
 A bat that can automatically start the subdomain
 
 @echo OFF
 color 0a
 Title ngrok start
 Mode con cols = 109 lines = 30
 : START
 ECHO.
 Echo ===================================================== =========================
 ECHO.
 Echo ngrok start
 ECHO.
 Echo Author: https://segmentfault.com/u/object
 ECHO.
 Echo ===================================================== =========================
 Echo.
 echo.
 echo.
 : TUNNEL
 Echo Enter the domain name prefix that needs to be activated, such as "test", that is, the penetration domain name assigned to you is: "test.myngrok.com"
 ECHO.
 ECHO.
 ECHO.
 set / p clientid = Please enter:
 echo.
 ngrok -config = ngrok.cfg -subdomain =% clientid% 80
 PAUSE
 goto TUNNEL