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