---
title: "localtunnelling绑定本地Web应用到公网地址"
author: "caiwenhn2008"
date: "2016-01-17T20:14:06Z"
tags: []
categories: ["企业架构"]
slug: "localtunnelling-web"
draft: false
lastmod: "2016-01-17T20:16:12Z"
id: 2271660
url: "https://caerun.iteye.com/blog/2271660"
---

> 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

```java
brew install node
```


2. Install Localtunnel

```java
npm install -g localtunnel
```


3. Start Localtunnel Client, run following command in shell

```java
lt --port 3000
```


will get mapping address

```java
caseysdeMacBook-Air:~ casey$ lt --port 3000
your url is: https://gtxzozgorw.localtunnel.me
```