How can I get the public IP of my Streamlit app hosted on the Streamlit cloud? I want this in order to communicate with the server using socket where I will be sending frames from my local system, which acts as a client. With the below code, I’m only getting a loopback address:
host_name = socket.gethostname()
host_ip = socket.gethostbyname(host_name)
Hi @derickcjohn,
Unfortunately, Streamlit Community Cloud doesn’t offer stable outbound IP addresses. A different hosting platform might be a better choice if you need to access stable outbound IP addresses for your app. I’d recommend checking out our community deployment wiki for some ideas.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.