node.js - How to allow NodeJS app live on external IP -
i trying run nodejs app on google cloud compute engine. can access preview page of app. when tried access app through external ip. there nothing happened. has use command add new firewall rule:
gcloud compute firewall-rules create default-allow-http-8080 \ --allow tcp:8080 \ --source-ranges 0.0.0.0/0 \ --target-tags http-server \ --description "allow port 8080 access http-server"
i figured out problem. when accessed google cloud console, though instance console, installed app in this. that's why when tried access ip of instance, there's nothing happened.
Comments
Post a Comment