I have azure Iot hub with connection details like address, remote_username, remote_password which my device uses to connect to the IoT hub. I am running mosquitto which uses below configuration settings in order to connect to azure Iot hub:
connection iot-bridge
log_type all
address apsdc.azure-devices.net:8883
remote_username apsdc.azure-devices.net/Device1
remote_password SharedAccessSignature sr=apsdc.azure-devices.net&sig=ofIUhB3Tx6r3lGruCveI166ua655y8wA7U5dffqxBqY%3D&se=1534941834&skn=iothubowner
remote_clientid Device1
....
other settings...
....
Mosquitto on device connects to the iot-bridge which is apsdc.azure-devices.net
using the provided username and sas password. I was wondering if its possible to use any public IP address instead of apsdc.azure-devices.net
. Is there any settings on azure to get the IP address. Thanks