From 5b6a146efea3cec9483e3836b784e1ce35073895 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 09:51:21 +0000 Subject: [PATCH 1/4] Initial plan From 9e32d74d80bd9b6df7b2a5c0141d2b7e5753bfa7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 09:52:49 +0000 Subject: [PATCH 2/4] Change server binding from localhost/127.0.0.1 to 0.0.0.0 Co-authored-by: cv-gh <8566560+cv-gh@users.noreply.github.com> --- .../agent-framework/sample-agent/host_agent_server.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/agent-framework/sample-agent/host_agent_server.py b/python/agent-framework/sample-agent/host_agent_server.py index 00a80375..4152c180 100644 --- a/python/agent-framework/sample-agent/host_agent_server.py +++ b/python/agent-framework/sample-agent/host_agent_server.py @@ -325,19 +325,19 @@ async def anonymous_claims(request, handler): with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.settimeout(0.5) - if s.connect_ex(("127.0.0.1", desired_port)) == 0: + if s.connect_ex(("0.0.0.0", desired_port)) == 0: port = desired_port + 1 print("=" * 80) print(f"šŸ¢ {self.agent_class.__name__}") print("=" * 80) print(f"šŸ”’ Auth: {'Enabled' if auth_configuration else 'Anonymous'}") - print(f"šŸš€ Server: localhost:{port}") - print(f"šŸ“š Endpoint: http://localhost:{port}/api/messages") - print(f"ā¤ļø Health: http://localhost:{port}/api/health\n") + print(f"šŸš€ Server: 0.0.0.0:{port}") + print(f"šŸ“š Endpoint: http://0.0.0.0:{port}/api/messages") + print(f"ā¤ļø Health: http://0.0.0.0:{port}/api/health\n") try: - run_app(app, host="localhost", port=port, handle_signals=True) + run_app(app, host="0.0.0.0", port=port, handle_signals=True) except KeyboardInterrupt: print("\nšŸ‘‹ Server stopped") From f517552f5df16817f3180a6afbfcf705f4c3f4bf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 09:53:43 +0000 Subject: [PATCH 3/4] Fix socket check and improve console output messaging Co-authored-by: cv-gh <8566560+cv-gh@users.noreply.github.com> --- python/agent-framework/sample-agent/host_agent_server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/agent-framework/sample-agent/host_agent_server.py b/python/agent-framework/sample-agent/host_agent_server.py index 4152c180..22957111 100644 --- a/python/agent-framework/sample-agent/host_agent_server.py +++ b/python/agent-framework/sample-agent/host_agent_server.py @@ -325,16 +325,16 @@ async def anonymous_claims(request, handler): with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.settimeout(0.5) - if s.connect_ex(("0.0.0.0", desired_port)) == 0: + if s.connect_ex(("127.0.0.1", desired_port)) == 0: port = desired_port + 1 print("=" * 80) print(f"šŸ¢ {self.agent_class.__name__}") print("=" * 80) print(f"šŸ”’ Auth: {'Enabled' if auth_configuration else 'Anonymous'}") - print(f"šŸš€ Server: 0.0.0.0:{port}") - print(f"šŸ“š Endpoint: http://0.0.0.0:{port}/api/messages") - print(f"ā¤ļø Health: http://0.0.0.0:{port}/api/health\n") + print(f"šŸš€ Server: 0.0.0.0:{port} (listening on all interfaces)") + print(f"šŸ“š Endpoint: http://localhost:{port}/api/messages") + print(f"ā¤ļø Health: http://localhost:{port}/api/health\n") try: run_app(app, host="0.0.0.0", port=port, handle_signals=True) From 98a848498ad56f4043acbc66ae4737ccf5918767 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 09:54:18 +0000 Subject: [PATCH 4/4] Improve server status message clarity Co-authored-by: cv-gh <8566560+cv-gh@users.noreply.github.com> --- python/agent-framework/sample-agent/host_agent_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/agent-framework/sample-agent/host_agent_server.py b/python/agent-framework/sample-agent/host_agent_server.py index 22957111..59f5aac1 100644 --- a/python/agent-framework/sample-agent/host_agent_server.py +++ b/python/agent-framework/sample-agent/host_agent_server.py @@ -332,7 +332,7 @@ async def anonymous_claims(request, handler): print(f"šŸ¢ {self.agent_class.__name__}") print("=" * 80) print(f"šŸ”’ Auth: {'Enabled' if auth_configuration else 'Anonymous'}") - print(f"šŸš€ Server: 0.0.0.0:{port} (listening on all interfaces)") + print(f"šŸš€ Server: Listening on 0.0.0.0:{port} (all interfaces)") print(f"šŸ“š Endpoint: http://localhost:{port}/api/messages") print(f"ā¤ļø Health: http://localhost:{port}/api/health\n")