Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

for the hello.js file i am automatic getting connected to port 8080 from link in terminal. Also same for 2nd file too. that is port 8081, Why so and how ?

for the hello.js file i am automatic getting connected to port 8080 from link in terminal. Also same for 2nd file too. that is port 8081, Why so and how ?

tfleming675

The second file is html-hello.js this one is port 8081. I needed to stop the services and run them again with html-hello.js. If you get the same port you are most likly using hello.js. At least this is what worked for me.

2 Answers

the reason of the ports is on the file itself. Check the code and you’ll find the port.

When you click directly on the link in cloud console, it will automatically send you to the correct proxy address to view that link. So clicking the link is not the same as copying and pasting the IP-address into the address bar in your browser. Also when the port number changes, and you click the link, it will send you to the updated proxy pointing to port 8081. It’s essentially the same as manually adjusting the port and selecting web preview.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?