Apr 20, 2021

4 min read

Sharefi — a hobby project (part 1/4)

Photo by Compare Fibre on Unsplash
  1. A server that will communicate with my TPLink router and will handle —
    a. User mobile number validation (I want a valid mobile number)
    b. Payment handling
    c. MAC address filtering
    d. Giving user necessary information (SSID, password) to connect to the router
  2. A schedular that will check for the expiry of a particular user and intern removing his/her MAC
  3. Since my ISP doesn’t provide a port forwarding feature, I can’t expose the server that I will create for 1 to the public. So I need some intermediator which will glue the end-user and the local server.
source: https://www.npmjs.com/package/ngrok
<meta http-equiv=”refresh” content=”2; url=’{url}’” />
Python anywhere redirects the user to ngrok
pythonanywhere redirecting the user to ngrok endpoint
Actual Servers
node server and python wrapper of ngrok client
setNgrokUrl API to set new ngrok url