ITeye博客

localtunnelling绑定本地Web应用到公网地址

caiwenhn2008 · 2016-01-17 20:14 · Ruby&Rails · 企业架构 · Markdown

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:

  1. Install Node JS
brew install node
  1. Install Localtunnel
npm install -g localtunnel
  1. 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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。