Welcome to Glass Jar Presentations! Welcome! Whether you are spacing jars on a shelf, choosing shapes, or tying twine around a lid, this is a friendly spot to talk through glass jar presentation ideas. Browse the sections and add your own questions or observations whenever you are ready.

How to Host a Raspberry Pi Web Server on the Internet with ngrok

  • Thread starter Thread starter Dave Johnson
  • Start date Start date
D

Dave Johnson

Guest
To host a Raspberry Pi web server on the Internet using ngrok, I guide readers through creating a simple Node.js web server with the http-server npm module and then making it accessible online. After setting up the server, I explain how to install ngrok to tunnel HTTP traffic from the local server to the public Internet, allowing access via a unique URL. Additionally, I introduce the ngrok-notify npm package to automate the process of sending the ngrok URL via email whenever the server restarts. Finally, I demonstrate how to use pm2 to ensure both the web server and ngrok tunnel run continuously, even after reboots, providing a robust solution for remote access.
 
Top