---
type: snippet
tags: ['local', 'debug', 'tunneling', 'localtunnel', 'ngrok', 'cloudflared']
status: release
ctime: 2022-04-09
mtime: 2025-01-11
---

[localtunnel](https://github.com/localtunnel/localtunnel)은 쉽게 테스트하고 공유할 수 있도록 로컬 호스트를 공개합니다! 다른 사람들이 변경 사항을 테스트하도록 하기 위해 DNS를 엉망으로 만들거나 배포할 필요가 없습니다.

```js
app.listen(PORT, async () => {
  const tunnel = await localtunnel({
    port: PORT,
    subdomain: name,
  })
```

> 하지만 너무 느려서 ngrok 쓰는게 현실적일수도 있겠다. -20220917

- [awesome-tunneling](https://github.com/anderspitman/awesome-tunneling)
- [cloudflared](https://github.com/cloudflare/cloudflared)
- [ngrok](https://ngrok.com/)
- [localxpose](https://localxpose.io/)

---

- [How to test webhooks on localhost](https://liveblocks.io/docs/guides/how-to-test-webhooks-on-localhost)[^68-1]

---

[^68-1]: 로컬 환경에서 웹훅 테스트를 위해, API 엔드포인트를 만들고 **localtunnel**이나 **ngrok**을 사용하기.
