Codespaces port forwarding not working (mainly for flask app)? #41907
-
Codespaces Port Forwarding issueQuestion BodyI was doing my flask app for a Deep Learning project and i have chosen codespaces when i knew about it. But a week before when i started executing my flask app again, the port forwarding was not happening and i am unable to run the frontend (in my case html page) is this the issue only for me, or anyone else got the same issue if you have found whats the problem, please help me out ASAP! you can check my application here https://github.com/dharantej1/KMIT_IOMP and please tell me whats the issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @dharantej1, we're thrilled you're using Codespaces! As you experienced at first, Codespaces and VSCode attempt to auto-detect any services you are running in the codespace and have VSCode forward them, but if the service you're running is not being auto-detected, you can forward the ports manually after starting the service, or you can set up a |
Beta Was this translation helpful? Give feedback.
Hi @dharantej1, we're thrilled you're using Codespaces! As you experienced at first, Codespaces and VSCode attempt to auto-detect any services you are running in the codespace and have VSCode forward them, but if the service you're running is not being auto-detected, you can forward the ports manually after starting the service, or you can set up a
devcontainer.json
to specify which ports should be forwarded every time you connect to a codespace for that repo. See the docs on forwarding ports in Codespaces for more detail. Hope this helps, and good luck!