1

I had an issue on one of my virtual machines where after a stop/start it changed the public IP address Which was been used by some IOT client devices to reach my server.

Now they not able to communicate with our server

Is any way I can revert it ?

Antonio

antoniogbn
  • 13
  • 3

1 Answers1

5

You need to check the configuration of your VM's public IP address and ensure that the assignment is set to Static, and not Dynamic.

Azure Public IP Address Configuration

Unfortunately you will not be able to get the old IP address back, but once you set your current IP address to Static, you will be able to keep it even if you restart your VM.

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
  • Great, so I cant change my IOT devices right now and I cant revert to my old IP really frustrating... Thanks @michael-hampton – antoniogbn Jun 19 '20 at 19:12
  • 1
    @antoniogbn you can also have a DNS name associated with the Public IP as well so even if it was dynamic it’d always resolve correctly. – Greg W Jun 22 '20 at 02:46
  • Absolutely use a fully qualified domain name to access your service. No device should have an IP address hard coded into it. This is one reason why. – Michael Hampton Jun 22 '20 at 03:48
  • totally agree on that @MichaelHampton, however it was used for an IOT solution and some legacy endpoints only accepts IP to addressing server and dont support DNS :( – antoniogbn Jun 22 '20 at 13:31