Streamlit Ports Access

Hi
I am trying to access my streamlit file from a PHP front end. But everytime I run the app, I have to open a new port on the server as the file is getting saved on 1 single server. I want to run all of my files on 1 single port depending on the condition passed from PHP. Is there any way to do so?

Thank You