Changing of port and multiple streamlit app

Hi, can I check if it’s possible to use other port besides the default 8501? If so, how do I set it? Can I also run multiple streamlit app on a VM, assuming I can set different ports?


Hi @zhun_t. Great question!

You can change the port by setting:


in your ~/.streamlit/config.toml.

Currently, you cannot set the port separately for multiple apps, but you won’t have to wait long! That feature has been implemented and is expected to land in 0.48 which will be released next week. Please follow that issue on Github for up-to-date information.

If you need a workaround right now, you could override ~/.streamlit/config.toml right before launching each server.

By the way, if you’re interested, you can see the full set of config options by running:

streamlit config show

from the command line.

1 Like

Hi there,
with Streamlit, version 0.56.0, I dont see the option for multiple servers. Neither --server.port nor --port. They both return no such option.
Thanks for ideas.

Can you show us the command you’re using to run a streamlit app? I can’t seem to reproduce your error.

> streamlit --server.port 8503 run                  
Usage: streamlit [OPTIONS] COMMAND [ARGS]...
Try "streamlit --help" for help.

Error: no such option: --server.port

just after your curiosity I tried

streamlit run --server.port 8503

and this worked. Sorry, thank you.

1 Like

Yeah, the order was incorrect. Glad you managed to fix it :slight_smile: