AImissq / tunnelMe-HowTo

expose localhost running static website to the internet - node express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tunnelMe-HowTo

  1. Install nodeJS http://nodejs.org/

git clone https://github.com/AImissq/tunnelMe-HowTo.git or download the zip

put files to be served in views folder - index.html will automatically be rendered and served

Run "node app.js" from within the downloaded git repo folder, or uncompessed zip file location

Browse to 127.0.0.1:8080 http://localhost:8080/

Create a public url for a static site from localhost

How to

  1. Get a free public URL for localhost from https://packetriot.com/downloads

  2. OR get a public URL from https://ngrok.com/

  3. OR get a public URL from https://localhost.run/

  4. Or get a publc URL from https://pagekite.net/

  5. Dowload repo and inside 'views' folder put your static site. Be aware that in view folder must be present an 'index.html' file


Additional info by ackroydAI (aimissq)

To overcome dynamic ip addresses try https://www.dynu.com/en-US/DynamicDNS

This is another free solution, albeit no option for a custom domain, but works well http://localhost.run/

Also there is of course https://ngrok.com/

You may see the error msg "(node:5323) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated" Switching to node v 10.11.0 removes the error.

About

expose localhost running static website to the internet - node express


Languages

Language:HTML 96.1%Language:JavaScript 3.9%