Getting 404 error when running streamline app

Hello Team,

I am trying to deploy an app to 80 on a VM instance, Ubuntu.
I am running the command

streamlit run app.py --server.port 80

The server gets started please see below screenshot -

However, when I open the link on the browser, I get 404 - please see the screenshot

I checked for the streamlit service and it seems to be running -

Here are the list of open ports for the vm.

Please let me know if I am missing something.

Thanks

1 Like

That is curious. It’s not a 401 or 403 as though it were forbidden.
I suspect it could be that windows uses port 80 by default but ubuntu uses port 22, and port 80 isn’t open to traffic even though you can scan the IP because the streamlit server is being pinged, so your webpage (as a client) can’t see it.

Following this answer you could try running

streamlit run app.py --server.port 22

Thank you for your response, I am able to telnet to machine on port 80.

telnet 103.19.91.136 80
Trying 103.19.91.136...
Connected to 103.19.91.136.
Escape character is '^]'.