Aws address does not connect

I have an application on an aws ec2 virtual machine. if I connect to streamlit using the ip address http://18.222.39.57:8501/ it works fine. however, if I use the server name ec2-18-222-39-57.us-east-2.compute.amazonaws.com:8501, the app starts but stalls at the “please wait” state. So the server is found, but streamlit does not start correctly. Is there anything I need to consider to use the server name instead of the address?

Hey @godot63,

It looks like a CORS problem, did you try configuring browser.serverAddress with ec2-18-222-39-57.us-east-2.compute.amazonaws.com ? or even disabling CORS using server.enableCORS ?

1 Like