Giter Club home page Giter Club logo

Comments (7)

peterwilli avatar peterwilli commented on May 30, 2024

@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.)

from ghoster.

RUGMJ avatar RUGMJ commented on May 30, 2024

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

from ghoster.

peterwilli avatar peterwilli commented on May 30, 2024

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.

from ghoster.

RUGMJ avatar RUGMJ commented on May 30, 2024

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

Where do I put that file?

from ghoster.

peterwilli avatar peterwilli commented on May 30, 2024

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

from ghoster.

RUGMJ avatar RUGMJ commented on May 30, 2024

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

from ghoster.

peterwilli avatar peterwilli commented on May 30, 2024

@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).

from ghoster.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.