-1

I have set a static IP address for my Google Cloud Compute Engine. When I go to the network details of the engine, it tells it is 34.88.xx.xx

However - when I now run a test python script in the cloud shell, it tells me that the requests comes from an IP that is 34.91.xx.xx

It looks like I should not run the script on the Shell but somehow run it in the compute engine. Hard to figure out how that could be done.

MattiH
  • 554
  • 5
  • 9

1 Answers1

1

As @Dany L suggested, if you want to run a python script on a VM you need to SSH to the VM. You can connect to VM instances through the Google Cloud Console or the gcloud command-line tool. After you connect, use the terminal to run commands on your VM instance.

Refer Connecting to VMs and gcloud command ssh.

Jyothi Kiranmayi
  • 2,090
  • 5
  • 14