# The streamlit app is forever loading data when accessing on public IP

**URL:** <https://discuss.streamlit.io/t/the-streamlit-app-is-forever-loading-data-when-accessing-on-public-ip/20665>\
**Category:** Deployment\
**Tags:** cache, windows\
**Created:** [January 6, 2022, 3:47am UTC](https://discuss.streamlit.io/t/the-streamlit-app-is-forever-loading-data-when-accessing-on-public-ip/20665 "2022-01-06T03:47:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DittoAsnar](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/dittoasnar/32/12270_2.png) [@DittoAsnar](https://discuss.streamlit.io/u/DittoAsnar)\
**Post date:** [January 6, 2022, 3:47am UTC](https://discuss.streamlit.io/t/the-streamlit-app-is-forever-loading-data-when-accessing-on-public-ip/20665/1 "2022-01-06T03:47:45Z")

</div>

Hi Streamlit Community,

I’m currently deploying my streamlit app on Windows, using steps from here:

> [@Simplest way to deploy a streamlit app in Windows server 2012](https://discuss.streamlit.io/t/simplest-way-to-deploy-a-streamlit-app-in-windows-server-2012/1835/10):
>
> For those following ethan’s step and still having errors, I have some solutions that worked for me. I skipped IIS and used task scheduler instead [How to deploy Streamlit on Windows IIS? - #3 by johnnybarrels](https://discuss.streamlit.io/t/how-to-deploy-streamlit-on-windows-iis/15010/3) If you’re still having error, most likely the port is closed by windows firewall. Here’s how to open it [Streamlit not getting AWS public IP - #3 by Steve\_Chen](https://discuss.streamlit.io/t/streamlit-not-getting-aws-public-ip/5802/3) If you’re on AWS EC2, there’s an extra step to open the port [App is not loading when running remotely - Streamlit Docs](https://docs.streamlit.io/knowledge-base/deploy/remote-start) …

I managed to get the app open in public IP, but know facing a new problem.

The app is basically just showing data grid from st-aggrid. It can appear normally on localhost, but not on public IP. It’s always stuck on running.

Here’s the error shown on the terminal whenever I access the app from public IP:

> 2022-01-06 03:44:11.873 Task exception was never retrieved  
> future: \<Task finished name=‘Task-1264’ coro=\<WebSocketProtocol13.write\_message..wrapper() done, defined at C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\tornado\websocket.py:1100\> exception=WebSocketClosedError()\>  
> Traceback (most recent call last):  
> File “C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\tornado\websocket.py”, line 1102, in wrapper  
> await fut  
> tornado.iostream.StreamClosedError: Stream is closed
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):  
> File “C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\tornado\websocket.py”, line 1104, in wrapper  
> raise WebSocketClosedError()  
> tornado.websocket.WebSocketClosedError

FYI, I have tried some suggestion from here, but still fails

> **[App is not loading when running remotely - Streamlit Docs](https://docs.streamlit.io/knowledge-base/deploy/remote-start#symptom-2-the-app-says-please-wait-forever)**

Thanks for your help

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [January 6, 2023, 3:48am UTC](https://discuss.streamlit.io/t/the-streamlit-app-is-forever-loading-data-when-accessing-on-public-ip/20665/2 "2023-01-06T03:48:33Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
