Skip to content

Fix local demo server connection refused on port 8080 - #4

Open
Chris-Moller wants to merge 2 commits into
soli-testbench:mainfrom
Chris-Moller:agent-task-5a8f91be
Open

Fix local demo server connection refused on port 8080#4
Chris-Moller wants to merge 2 commits into
soli-testbench:mainfrom
Chris-Moller:agent-task-5a8f91be

Conversation

@Chris-Moller

Copy link
Copy Markdown
Contributor

Task

Fix local demo server connection refused on port 8080

Type: bug | Size: medium | Priority: undefined

Description

Fix the local demo server so it correctly serves content on port 8080 and is accessible via http://localhost:8080. The server starts and claims to be listening but connections are refused, likely due to IPv6/IPv4 binding issues. This enables users to successfully run and test the demo locally.

Acceptance Criteria

  • Running the demo server locally binds to 0.0.0.0:8080 (IPv4) in addition to or instead of :::8080 (IPv6-only)
  • http://localhost:8080 loads the demo page successfully in a browser
  • http://127.0.0.1:8080 loads the demo page successfully in a browser
  • No connection refused errors when accessing the demo on port 8080

Implementation Summary

Fixed server.js to bind to 0.0.0.0 for IPv4 access and serve static files with correct MIME types

Completed:

  • Running the demo server locally binds to 0.0.0.0:8080 (IPv4) instead of :::8080 (IPv6-only)
  • http://127.0.0.1:8080 loads the demo page successfully (returns index.html)
  • No connection refused errors when accessing the demo on port 8080
  • http://localhost:8080 loads the demo page successfully in a browser

Changed files:

  • server.js

Tests were run and passed.

Commits

  • 7772533 fix(server): bind to 0.0.0.0 and serve static files
  • f077d19 chore: add implementation plan

Implemented by Venice Executor · task 5a8f91be-5498-49d7-832e-30b5002ff618

Chris-Moller and others added 2 commits March 17, 2026 01:17
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Bind to 0.0.0.0 instead of default :: to ensure IPv4 accessibility
- Replace plain-text handler with static file server
- Add MIME type detection for html, css, js, json, ts
- Reject path traversal attempts with 403
- Return 404 for missing files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant