Demo app for creating a web app on a P2P VPS client rental.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

LocalTunnel Test Application

This is a test application that can be downloaded to a rented VPS in order to set up a web page or web application that is accessible by a public URL.

This application is based on the LocalTunnel application. The source code can be found here:


You can watch a video on how to run this example program on a P2P VPS rented server

  1. After logging in, navigate to the storage directory:

cd /media/storage

  1. Install LocalTunnel in your VPS with the following command:

sudo npm install -g localtunnel

  1. After logging into your VM. Download this repository:

git clone

Occasionally, you'll get the following error:

fatal: could not create work tree dir 'localtunnel-test-app': Permission denied

You can fix this by giving yourself permission with this command:

sudo chown -R $USER /media/storage/

  1. Install the dependencies for your new web application:

npm install

  1. Run LocalTunnel and instruct it to forward port 3500. Note the URL it gives you. This is the URL where you can access the website your device is serving.

lt --host --port 3500 &

  1. Run your web app:

npm start


A note on HTTPS and SSL encryption: Let's Encrypt will issue wildcard certs at the end of February 2018. At that point, the server will be updated to allow HTTPS encryption from your rented device.