Wifi Module connected to the cloud but in linux its not showing online


I am attaching a link where my SS of the code is there.
https://drive.google.com/file/d/1Uo8CQ4d6Oee7aUoNnndrNQRQBkObkKAr/view?usp=sharing
My Wi-Fi module is connected to the cloud but when I am running my code in Python to check the status of the device in Linux it’s not showing online.

First check if your VM has internet access on it.

Type

ping google.com

and send a screenshot

yes. It worked. My VM was not connected to the internet. Thanks