I have a Plolty Dash application which is running on localhost. I will be making it live and give a specific domain name. What I want to achieve is to get the url name on which the application is running. For instance, if it is running on localhost:8050, I want a Python script to grab that specific url and store it in a variable inside the application. Is there any way I can achieve this? I have searched the internet but what I get is Webscraping tutorials. I want the script to automatically detect the url on which it is running. Thank you for any help.