Search code examples
node.jsnoip

How do I run a Node.js application on my local machine and using No-IP to let someone else access it from the Internet?


My application defines a few callbacks (URLs), and I need to test them.

Is it possible to run a application on a local machine and let someone else access it from the Internet?

(I can't deploy my application to Heroku, because it takes up to 30 minutes and this is not the best option when one needs to debug, fix possible bugs, and redeploy the application many times.)

So I want to use No-IP to have some general IP address and give anyone access to my service that will run on my local machine.

  1. Is it possible?
  2. If possible - how to do it?

Solution

  • If your application is using an HTTP server, you can use https://github.com/localtunnel/localtunnel to expose your API.

    Even if you are not using an HTTP server in your application, you can simply create one and have some routes call your functions.