Hello @Arpit Agarkar,
welcome to this moderated Azure community forum.
This feels like being just a network firewall issue where the preferred internet connection is made over the ethernet connection:
- Can you try to ping 'the internet' (8.8.8.8 from the top of my mind)
- Can you try a test application like this Python or C# one
- Can you check if you can connect over 'MQTT over Websockets' because port 443 seems to work? (see the above two samples).
- Can you try to 'telnet' to the iothub over the related port if you want to use MQTT or AMQP? Nothing serious, it's just to see if this connection can be set up?
I recommend the WebSockets variant for production to limit the dependency or firewalls in general.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.