DEV Community

Discussion on: How to demo your localhost app using ngrok

sammyisa profile image
Sammy Israwi

When making requests from your application, are they made from localhost or from the address ngrok gives you?

marcuzy profile image
Oleg Krasavin • Edited on

Definitely, your app is going to make a request from your own ip address. ngrok just creates a websocket connection between your local machine and ngrok's server. Every time, when someone requests your, ngrok's server emit the request data through the websocket connection. Ngrok's client receives the data and requests corresponding localhost resource. That's to say, your application isn't linked to ngrok and knows nothing about it.