使用ngrok讓外網裝置執行電腦Localhost佈署的APP

7/7更新serveo也能達到同樣的功能

下載ngrok

#Windows版本
https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip

解壓縮

雙擊ngrok.exe進入環境當中

啟動監聽Port

假設我們已經佈署一個在8080 port的APP了,這時候,只需要讓ngrok監聽8080即可。

ngrok會產生出一組網址,我們可以透過這個網址,在其他電腦連線到本機的8080 port

ngrok http 8080

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store