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

Start Che Theia on another than 3000 port by default #12074

Closed
mmorhun opened this issue Nov 29, 2018 · 11 comments
Closed

Start Che Theia on another than 3000 port by default #12074

mmorhun opened this issue Nov 29, 2018 · 11 comments
Assignees

Comments

@mmorhun
Copy link
Contributor

mmorhun commented Nov 29, 2018

Description

Currently we start Theia on 3000 port by default, but that port is often used by some applications. For example nodejs http server uses 3000 port by default.

The proposal is to start Theia on some less popular port.

@benoitf
Copy link
Contributor

benoitf commented Nov 29, 2018

+1000 to this :-)

@slemeur
Copy link
Contributor

slemeur commented Nov 29, 2018

Nice!

@sunix
Copy link
Contributor

sunix commented Nov 30, 2018

ok but we are not supposed to run other apps in the theia container so to me this is really not something critical IMHO.

@benoitf
Copy link
Contributor

benoitf commented Nov 30, 2018

@sunix network is shared across containers
so if you spawn a nodejs app in for example foo container with port 3000 as well, it will collide with the process running inside theia container

@benoitf
Copy link
Contributor

benoitf commented Nov 30, 2018

https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

what are proposals so for the new 2 ports number ?

@mmorhun
Copy link
Contributor Author

mmorhun commented Dec 3, 2018

What about 3100 and 3130 ?

@sunix
Copy link
Contributor

sunix commented Dec 3, 2018

i suggest 74314

  • 7 for t
  • 4 for h (see the h upsidedown)
  • 3 for E (see the E upsidedown)
  • 1 for I
  • 4 for A

Edit: port range ... 0 to 65535
Let's reverse it: 41347

hosted: 41342 ( last 2 is a 't' upside down)

@sleshchenko
Copy link
Member

FYI Che uses the following ports for its services in workspaces:

  • 4403 - Ws Agent
  • 4411 - Terminal
  • 4412 - Exec Agent

@mmorhun
Copy link
Contributor Author

mmorhun commented Dec 3, 2018

@sunix the maximum port number is 65535, but note, that ports above 32768 (at least for linux) are ephemeral and it is not so good idea to use them.

@slemeur
Copy link
Contributor

slemeur commented Dec 11, 2018

How are we progressing on this one? That should be an easy fix. Can we get it done asap?

@mmorhun
Copy link
Contributor Author

mmorhun commented Dec 13, 2018

Done

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

5 participants