--- title: 'ngrok 多port使用' tags: ngrok description: ngrok 多port使用 --- # ngrok 多port使用 解決測試伺服器對外多個port的設定 --- [TOC] --- ## 下載 - [ngrok](https://ngrok.com/download) --- ## cmd ``` ngrok config upgrade ``` 到C:\Users\${user}\AppData\Local\ngrok\ngrok.yml  ``` yml version: "2" authtoken: 1Y...rLZx tunnels: api: addr: 8080 proto: http host_header: localhost front: addr: 3000 proto: http host_header: localhost ``` ``` ngrok start --all ```  ---
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up