How to redirect from website to laptop(localhost)

I created an application with Yii2. It will be packaged and deployed with PHPDesktop-Chrome. The application is also hosted on a shared hosting server.

Users are to install the application on their laptops. When they run the application, they will be redirected to the Internet website for activation.

After Activation the Internet website is supposed to redirect back to the local application.

Redirection from the Local application to Internet is working with :


Please after activation how can I redirect back to the Local application on the laptop ?

Kindly help in this !