Connection timed out Error

I use streamlit and socket module to creat a button “connect”, if button clicked:

soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
soc.connect((SERVER_ADDRESS, PORT))
soc.send(content.encode())

when i run it “streamlit run file.py” (localhost)-> Successful
but when i upload to streamlit clound, it throwed a err “”


image

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