Add server functionality for port forwarding#44
Merged
dragos-ana merged 1 commit intomainfrom Feb 17, 2026
Merged
Conversation
Collaborator
dragos-ana
commented
Feb 13, 2026
- This PR implements additional server functionality for the webviewer, enabling local visualizations despite running the webviewer on a remote machine.
- Specifically, the user can specify whether the webviewer should be run in server mode via the CLI, and on which port, thereby enabling SSH port forwarding.
9a92f3f to
ab304c1
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds server mode functionality to the 4C-Webviewer, enabling it to run on remote machines with SSH port forwarding support. This allows users to visualize input files locally while the webviewer runs remotely.
Changes:
- Added
--serverCLI flag to run in server mode without opening a browser - Added
--portCLI flag to specify a custom port (defaults to 12345) - Updated README with SSH port forwarding examples
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| src/fourc_webviewer/run_webserver.py | Renamed SERVER_PORT to DEFAULT_PORT, added port and server parameters to run_webviewer function, implemented open_browser logic |
| src/fourc_webviewer/cli_utils.py | Added --server and --port CLI arguments |
| README.md | Added documentation section explaining server mode usage with SSH port forwarding examples |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
c-p-schmidt
reviewed
Feb 15, 2026
ab304c1 to
82cc85d
Compare
- This PR implements additional server functionality for the webviewer, enabling local visualizations even though the webviewer is run on a remote machine. - Specifically, the user can specify whether the webviewer should be run in server mode, and on which port, thereby enabling SSH port forwarding.
82cc85d to
27710d9
Compare
c-p-schmidt
approved these changes
Feb 17, 2026
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.