localtunnelling绑定本地Web应用到公网地址
Localtunnel will assign you a unique publicly accessible url that will proxy all requests to your locally running webserver. it's really helpful when we doing some testing like third-party login like QQ login, weibo login etc, as they need an call back server to send back response.
Steps:
- Install Node JS
brew install node
- Install Localtunnel
npm install -g localtunnel
- Start Localtunnel Client, run following command in shell
lt --port 3000
will get mapping address
caseysdeMacBook-Air:~ casey$ lt --port 3000
your url is: https://gtxzozgorw.localtunnel.me