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

would it be possible to keep the same port everytime #1

Open
RUGMJ opened this issue Aug 6, 2020 · 7 comments
Open

would it be possible to keep the same port everytime #1

RUGMJ opened this issue Aug 6, 2020 · 7 comments

Comments

@RUGMJ
Copy link

RUGMJ commented Aug 6, 2020

No description provided.

@peterwilli
Copy link
Owner

peterwilli commented Aug 6, 2020

@RUGMJ7443 Currently, yes and no. Yes: The server picks the first available port in the range, meaning that if that port is always available, you will get the same port. This is typically the case when you forward one app at a time.

No: When that port is taken (say, by another user or app) then the port will be skipped and you get the next port in line.

We could implement a thing where we divide the range over a set of users (i.e if you have a range of 100 ports and 4 users in the system, then 4 users will each get a range of 25 ports, making sure that the ports of your choosing are not affected by other users.)

@RUGMJ
Copy link
Author

RUGMJ commented Aug 6, 2020

How do I choose the range of ports I'd like to use

@peterwilli
Copy link
Owner

peterwilli commented Aug 6, 2020

How do I choose the range of ports I'd like to use

There's a sample config file, you can set your range there (rename it to config.js to make sure it's recognized). If you decide to run it with Docker, then you also have to change the ranges there so that the ports are forwarded outside of the container.

@RUGMJ
Copy link
Author

RUGMJ commented Aug 6, 2020

I'm sorry to be a pain I don't use ssh that much

Where do I put that file?

@peterwilli
Copy link
Owner

No problem, there's a config.sample.js file in the src/ folder when you clone the repository. You can rename that to config.js, and set your account there (you can simply rename the test username and password to something more private).

@RUGMJ
Copy link
Author

RUGMJ commented Aug 6, 2020

and then i ssh into ssh user@ghoster_server.com -p 2222 -R 0:localhost:3000

@peterwilli
Copy link
Owner

@RUGMJ7443 You need to host it yourself, at the moment. So ghoster_server.com is an example.
However, should people be interested, I'm ok with hosting a public version with limited timeouts and port ranges (for testing purposes as I can't guarantee uptime).

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

No branches or pull requests

2 participants