How to set a different port number for different streamlit program in a same machine?

I build and in a same desktop.
If I want to run and together, how can I use different port to run and in a same explorer at the same time?
Thank you.

There is a param called server.port. So you can do something like:

streamlit run --server.port 8080
1 Like

This is correct if you want to specify the exact port, or Streamlit will just increment the port number to 8502, 8503, etc. if 8501 is in-use.

1 Like