Step-by-step instructions on how to open ports in GCP VM
Step 1: Open GCP console and click on VPC network and click on firewall
Step 2: Click on create firewall rule
Step 3: Provid the firewall rule details like priority, Target tags, Source IP and protocol with ports. Below image I have opened 8080, 8070 ports with TCP protocols using the jenkins tag.
Step 4: I have GCP VM with the name gfg-vm edit that VM and verify the which tags is available on network tags section. Below image shows no tags available.
Step 5: Enter the tags which you have created on firewall rule enter the tag under the network tag section. After that click on save.
Step 6: Verify the tags is attached on not. Below image shows tags successfully atached.
How To Open Port In GCP VM ?
Virtual machines (VMs) on the Google Cloud Platform simulate powerful desktop computers in the cloud. They are essential because they allow it to be easy-to use apps and software without having to pay for hardware. This common use involves things like hosting websites, maintaining databases, and organizing information analysis work.
Contact Us