Hi @Satyam Chauhan Apologies for the delayed update on this issue. IoT Hub hosted in a private endpoint currently only supports white listing of IP addresses to allow connection from end points.
I understand your IoT Edge device is behind proxy servers and NAT Ip's. You may need to configure your proxy server and NAT device to allow traffic to the IP address. Here are few steps that would help you achieve this.
- Determine the public IP address of the NAT device that the IoT Edge device is behind. You can use a service like
http://checkip.dyndns.org
to determine the public IP address. - Configure the NAT device to forward traffic from the IoT Edge device to the private IP address of the IoT Hub. You will need to forward traffic on the ports used by the IoT Hub (e.g. 8883 for MQTT, 5671 for AMQP).
- Configure the proxy server to allow traffic from the IoT Edge device to the private IP address of the IoT Hub. You may need to configure the proxy server to allow traffic on the ports used by the IoT Hub.
- In the Azure portal, navigate to your IoT Hub and click on "Firewalls and virtual networks" under the "Settings" section.
- Click on "Add your client IP" to add the public IP address of the NAT device to the allowed IP addresses list. This should allow traffic from the IoT Edge device to access the IoT Hub.
If you need further assistance with this issue, I request you to create a support ticket. If you do not have access to a support plan, could you please send an email with the below details, so that we can work closely on this matter.
Thread URL: Link to this thread.
Azure Subscription ID:
Email Subject : Attn Leela