-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static Port for Browser app (Issue #2144) #2145
base: master
Are you sure you want to change the base?
Conversation
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I developed a workaround if someone would want to connect to the localhost websocket - Works on macOS, possibly Linux, and not Windows. Thanks to @cagnulein for helping me via email. ![]() How I did this:
How to run the code (if on macOS, maybe Linux):
Your output should look like this: This doesn't directly give a static port for the browser app, but it offers a solution to those who want to connect to the localhost websocket. I still don't know what the -- |
The server port is, if I remember correctly, for the templates done by @p3g4asus |
I had to review the code because I completely forgot it. However it is pretty simple. When a template is found, the settings are searched for the key "template_[templateId]_port". If it is found and it is not >0 and < 65535, that port number is used. If it is found and it is 0, the first time the template is started, the port is set randomly and saved in settings so that it will remain fixed for every next start. If it is not found, it is set to a default value that is 6666. So I think that if you delete that line of code for windows build, you will have QZ windows inner web server on port 6666. |
Static Port for Browser app (Issue #2144)