Closed. This question does not meet
Update Firewall rules
CodePudding user response:
Based on your update and our comment conversation, I think you need to add a firewall rule. Below shows how to open all ports so any port is accessible on the VM to any outside user. Not great for security but should hopefully show this was the issue. Make sure not to run like this for production etc.
- Go to "Firewall" within "VPC Network" in GCP
- Click "Create Firewall Rule"
- Give it a name like "all"
- Change Targets to "All instances in the network"
- Change Source IP Ranges to
0.0.0.0/0
- Click "Allow all" on port ranges
You should be able to access SERVERIP:30177. This should work fine with NodePort in a VM (rather than using GKE) and the server suggests the port is listening with netstat -ntlp
showing 0.0.0.0:30177
.