Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

GCloud Shell Web preview says "Couldn't connect to a server on port 8080" #2176

Open
trodney3 opened this issue Dec 2, 2020 · 1 comment

Comments

@trodney3
Copy link

trodney3 commented Dec 2, 2020

I am attempting to complete the initial setup of React through CS-and-the-City curriculum with my students (https://github.com/upperlinecode/CS-and-the-City-Curriculum/blob/master/react/react-setup.md). Everything goes well and I even entered
npm install -g npm
for the patches as well as
npm audit fix
which found 0 out of 0 vulnerabilities.

My real issue is when we try to preview the code (preview on port 8080) I receive a new window with the message "Couldn't connect to a server on port 8080".

I tried opening another cloudshell command window and entered
curl -i http://localhost:8080/
and received the following:
curl: (7) Failed to connect to localhost port 8080: Connection refused

I turned off my VPN, I turned off my firewall completely, I changed the port. My students who are working remotely from their home also receive the same error. I don't know what else to do.

@trodney3 trodney3 closed this as completed Dec 2, 2020
@trodney3
Copy link
Author

trodney3 commented Dec 2, 2020

Figured it out facepalm
Once you enter npm start, it returns the port you need to use in order to preview. Now I am receiving an error that it failed to compile because the ./logo.svg module could not be found.

@trodney3 trodney3 reopened this Dec 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant