Multiple instances on same server? #2280
              
                
                  
                  
                    Answered
                  
                  by
                    code-asher
                  
              
          
                  
                    
                      dylan-meiners
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 3 comments 2 replies
-
| You can use the --bind-addr or --port flags. For example:
code-server --bind-addr localhost:1234
code-server --port 1234
You can also use port 0 to use a random port.
One thing to keep in mind is that if code-server is handling TLS then
there is a bug with running multiple instances: #2200
Using a reverse proxy to handle TLS won't have any problems though. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        dylan-meiners
-
| @dylan-meiners curious how you ended up doing this. I have been using containers and am thinking of setting up a minikube cluster to give some friends their own web dev environments :) | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            -
| I will leave this thread open, in case someone else has any solutions that they used, as there are many to choose from. So far, the list is 
 | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I have been looking for a while on ways to have multiple code-servers running at the same time. It would really be a hassle to have to have a different VM for each code-server instance. As far as I can tell, running code-server always uses port 8080. I read somewhere that if you wanted to have different team members, you would need multiple instances. How would I start another instance of code-server on a different port?
Beta Was this translation helpful? Give feedback.
All reactions