Why use ngrok to share localhost?
- Instant public URLs: Get a publicly accessible HTTPS URL for your local app in seconds with a single command.
- No deployment needed: Skip staging environments and cloud deploys. Share what’s running on your machine right now.
- Built-in security: Every endpoint comes with TLS encryption out of the box. You can also add authentication, IP restrictions, and more with Traffic Policy.
- Traffic inspection: See every request and response in real time with ngrok’s built-in Traffic Inspector, and replay requests to speed up debugging.
Use cases
Webhooks
Receive webhook callbacks from third-party services on your local machine
Mobile apps
Test mobile apps against your local backend without deploying
API development
Share your local API with teammates or external consumers for testing
The ngrok platform
Secure tunnels
Learn how ngrok creates encrypted tunnels to your localhost
Traffic inspection
Inspect HTTP requests and responses in real time
Authentication
Add OAuth, basic auth, or other authentication to your endpoints
Network security
Control access with IP restrictions, mTLS, and more