Skip to content
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

Having 2 instances at the same time is not possible right now. --host & --proxy flags #18

Closed
noraj opened this issue Feb 22, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@noraj
Copy link

noraj commented Feb 22, 2024

Having 2 instances at the same time is not possible right now.

image

Launching a second instance:

  • It fails with Error: unknown command "create" for "grroxy-linux" instead of saying that the host:port is already in use, that's very weird
  • It would be nice to have an option specify the host and port for the webUI, so one could host that on something else than localhost have a way around is the port is already taken, so adding --ui-host and --ui-port options
  • Same but for the proxy (8888), --proxy-host and --proxy-port options
  • Same but for what whatever is running on 127.0.0.1:10080, SOCKS proxy?

The options should not be only available for the create command but also for the list command when resuming an existing project.

@noraj
Copy link
Author

noraj commented Feb 22, 2024

NOte: I'm not sure why the ASCII art displays two times.

@glitchedgitz
Copy link
Owner

It fails with Error: unknown command "create" for "grroxy-linux" instead of saying that the host:port is already in use, that's very weird
It would be nice to have an option specify the host and port for the webUI, so one could host that on something else than localhost have a way around is the port is already taken,

In future, if port is in use, it will auto choose empty ports and connect.

so adding --ui-host and --ui-port options
Same but for the proxy (8888), --proxy-host and --proxy-port options

I will add the options soon.

Same but for what whatever is running on 127.0.0.1:10080, SOCKS proxy?

Yes

The options should not be only available for the create command but also for the list command when resuming an existing project.

Yes, and grroxy will save the previous options to resume directly.

@noraj
Copy link
Author

noraj commented Feb 22, 2024

In future, if port is in use, it will auto choose empty ports and connect.

I was going to suggest that later but yeah it would be sugar in case of conflict.

@glitchedgitz glitchedgitz added the enhancement New feature or request label Feb 22, 2024
@glitchedgitz
Copy link
Owner

Done in version v0.15.6

  • --host for hosting main app
  • --proxy for proxy address
  • Auto select next port if supplied port is in use.

@glitchedgitz glitchedgitz changed the title Host and port Having 2 instances at the same time is not possible right now. --host & --proxy flags Mar 11, 2024
@glitchedgitz glitchedgitz mentioned this issue Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants