Skip to content

expose localhost running static website to the internet - node express

Notifications You must be signed in to change notification settings

AImissq/tunnelMe-HowTo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 96.1%
  • JavaScript 3.9%