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 ?
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.