I want to get access to an windows iot device from internet. I want to connect my device via Ethernet to any network. The networks are connected to the internet. I have no static ip and I don't know anything about the network where my device is connected.
So I thought I can run an application on that device which detects a new Ethernet connection. That application could send me the actual ip address and informations about the network to a specific endpoint. With those informations I thought I could connect myself with the windows iot device?
Is that even possible to get automatically access to a device from "outside" without knowing anything from the network?
EDIT:
When I plugin the device to Ethernet and the firewall allows it, I want the device to send specified data to a cloud service like Azure Event Hub. After receiving events and recognition of the new device in the cloud, I also want to send messages to the device. But I don't want to use DNS or VPN and I don't want to use Azure IoT Hub, because I want be able to change the cloud provider.