how to access a code-server container from a different host? #6330
Unanswered
yan-guojun
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Is the 8088 a typo? If not maybe you just need 8080. Otherwise, I am not sure. Maybe try binding to all interfaces with 0.0.0.0 instead? If that does not help, do you experience the same problem with other web servers? For example if you were to run |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After I start the below command:
docker run -it --name code-server -p 10.68.177.71:8080:8080 -v "$HOME/.config:/home/coder/.config" -v "$PWD:/home/coder/project" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" -e "PASSWORD=abcdef" codercom/code-server:latest
I can access the server via "http://10.68.177.71:8080".
but I cannot access the server via another host machine, such as 10.68.177.72. Anyway, ping works OK and curl http://10.68.177.71:8088 doesn't work.
I checked the firewall and forwarding bridge, network, they are all fine.
it seems the code-server application refused to accept the request from different host.
anyone can give a help? thanks
Beta Was this translation helpful? Give feedback.
All reactions