Update Streamlit address to 192.168.50.101 for external access

This commit is contained in:
pys306
2026-04-26 02:29:42 +09:00
parent cd0ce4d9b0
commit bf8914856e

View File

@@ -18,7 +18,7 @@ def get_screen_width():
def start_streamlit(port): def start_streamlit(port):
global proc global proc
cmd = [sys.executable, "-m", "streamlit", "run", os.path.join(frontends_dir, "stapp.py"), "--server.port", str(port), "--server.address", "localhost", "--server.headless", "true"] cmd = [sys.executable, "-m", "streamlit", "run", os.path.join(frontends_dir, "stapp.py"), "--server.port", str(port), "--server.address", "192.168.50.101", "--server.headless", "true"]
proc = subprocess.Popen(cmd) proc = subprocess.Popen(cmd)
atexit.register(proc.kill) atexit.register(proc.kill)