Skip to content

Add server functionality for port forwarding#44

Merged
dragos-ana merged 1 commit intomainfrom
add-server-functionality
Feb 17, 2026
Merged

Add server functionality for port forwarding#44
dragos-ana merged 1 commit intomainfrom
add-server-functionality

Conversation

@dragos-ana
Copy link
Copy Markdown
Collaborator

  • 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.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 --server CLI flag to run in server mode without opening a browser
  • Added --port CLI 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.

Comment thread src/fourc_webviewer/cli_utils.py Outdated
Comment thread src/fourc_webviewer/run_webserver.py Outdated
Comment thread src/fourc_webviewer/run_webserver.py Outdated
Comment thread src/fourc_webviewer/run_webserver.py Outdated
Comment thread README.md Outdated
Comment thread src/fourc_webviewer/run_webserver.py Outdated
Comment thread src/fourc_webviewer/cli_utils.py
@dragos-ana dragos-ana force-pushed the add-server-functionality branch from ab304c1 to 82cc85d Compare February 17, 2026 18:19
- 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.
@dragos-ana dragos-ana force-pushed the add-server-functionality branch from 82cc85d to 27710d9 Compare February 17, 2026 18:22
@dragos-ana dragos-ana merged commit 0229d43 into main Feb 17, 2026
2 checks passed
@dragos-ana dragos-ana deleted the add-server-functionality branch February 17, 2026 22:13
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.

3 participants