--- 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 ![](https://i.imgur.com/7JHxue7.png) ``` 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 ``` ![](https://i.imgur.com/andvDH3.png) ---