How should network be configured to allow physical device to connect to IoT Hub?

Hoback, Jacob 51 Reputation points
2021-09-21T21:47:23+00:00

Hello all,

I have a physical device which is attempting to connect to IoT Hub using MQTTS protocol (port 8883). I am working within a corporate network environment, so I cannot have port 8883 left open. IT department is asking for source and destination IP addresses to allow a connection from the device to IoT Hub. I am able to set a static IP address for the device I am setting up, but I am unsure if I have given IT the proper information for my IoT Hub. I thought that according to Microsoft documentation
the destination should be set in the format myhub.azure-devices.net. I relayed this information to IT, and they claim to have done this, but I still have not had any luck with connecting the device to my IoT Hub. Is there something I am missing here? Does the port have to be left completely open? Any thoughts or advice is greatly appreciated.

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,108 questions
0 comments No comments
{count} votes

Accepted answer
  1. António Sérgio Azevedo 7,661 Reputation points Microsoft Employee
    2021-09-22T16:01:45.13+00:00

    Hi @Hoback, Jacob ,
    Is the IT department enabling Outbound rules for the Azure IoT hub hostname (myhub.azure-devices.net) on port 8883 ? You can also try setting the IP Address from IoT Hub instead - using the service tags JSON file.

    For example, these are current IP addresses for WestEurope

    "name": "AzureIoTHub.WestEurope",  
          "id": "AzureIoTHub.WestEurope",  
          "properties": {  
            "changeNumber": 1,  
            "region": "westeurope",  
            "regionId": 18,  
            "platform": "Azure",  
            "systemService": "AzureIoTHub",  
            "addressPrefixes": [  
              "13.69.71.0/25",  
              "13.69.109.0/25",  
              "13.95.15.251/32",  
              "23.100.4.253/32",  
              "23.100.8.130/32",  
              "40.113.153.50/32",  
              "40.113.176.160/27",  
              "40.113.176.192/27",  
              "40.113.177.0/24",  
              "40.118.27.192/32",  
              "51.144.118.31/32",  
              "52.236.189.128/25",  
              "2603:1020:206:402::300/123",  
              "2603:1020:206:802::240/123",  
              "2603:1020:206:c02::240/123"  
            ],  
    

0 additional answers

Sort by: Most helpful