Ray's Community

Programming => Platforms => Web => Topic started by: raydlee on November 26, 2020, 05:48:38 PM

Title: Keystone for a big new project!
Post by: raydlee on November 26, 2020, 05:48:38 PM
Completed the first version of the keystone for a new project - weblinking!

The weblink idea is to overcome the dynamic IP issue by having a service on my local desktop which syncs a generated uuid with my website. My website starts with an issue record for my current IP address, and my server calls up without a uuid, to which the website logs the call in the database and gets a uuid generated which it then passes back to the service in response. The service logs the uuid and waits for five seconds. The service then starts a repeating cycle by calling again, but with the uuid from the previous call, the website verifies it and updates the db record, and responds by issuing the new uuid to the service.
The upshot is that if the ip address changes in the 5 seconds between calls from my windows service, then the website will recognise the uuid from the previous call and log the new ip address and despatch a new uuid.
if there is a network delay between calls, then the windows service will keep retrying until it gets a response from the website again, and the website will respond by recognising the uuid from the last call and issue a new uuid.
Anything other than a normal 5 second turnaround will lead to the website logging an error in it's database. The errors are also replied to the service which also logs the errors in a local text file.

Further refinements expected.

The major project on top of this makes use of the latest IP address in serving webpage content and referring to image galleries served straight from my home desktop. No worries about overloading the web storage or content issues.
Title: Re: Keystone for a big new project!
Post by: raydlee on November 01, 2021, 10:33:15 AM
ip.urdl.fun has been running on php alone, but needs to move to flask/mysql