Where is this Streamlit app running: How to check the runtime environment of a Streamlit?

Multiple ways to check whether the current Streamlit app is running locally or not.