Bind server to 0.0.0.0 for container/cloud compatibility#1
Merged
Conversation
Co-authored-by: cv-gh <8566560+cv-gh@users.noreply.github.com>
Co-authored-by: cv-gh <8566560+cv-gh@users.noreply.github.com>
Co-authored-by: cv-gh <8566560+cv-gh@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update host_agent_server.py to listen on all IP addresses
Bind server to 0.0.0.0 for container/cloud compatibility
Feb 3, 2026
There was a problem hiding this comment.
Pull request overview
Updates the Python sample agent host to bind the web server to all interfaces to support external connectivity in containers and cloud app hosting.
Changes:
- Changed the aiohttp server bind host from
localhostto0.0.0.0. - Updated the startup console banner to reflect that the server is listening on all interfaces.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Server was binding to
localhost/127.0.0.1, preventing external connections in containerized environments and app service deployments.Changes
Line 340: Changed
run_app()host parameter from"localhost"to"0.0.0.0"Line 335: Updated console output to reflect binding behavior
Notes
Socket connection check (line 328) correctly remains at
127.0.0.1- connecting to0.0.0.0is invalid. Endpoint URLs in console output remainlocalhostfor local testing UX.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.