Azure IoT SDK connection with Ethernet and Wifi

Arpit Agarkar 0 Reputation points
2024-04-25T11:09:30.5+00:00

I have developed my application using Azure IoT SDK, and it is running fine when my device is connected to wifi.

But when I use wifi and ethernet both, I feel that my application is not getting internet (whereas on the browser i am getting internet and also while installing any application through terminal ), so requesting for help in this regards

Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
211 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 30,786 Reputation points MVP
    2024-04-25T13:18:55.3766667+00:00

    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.