I have an EC2 on AWS with Windows server. I would like to be able to change its IP very often. At the moment, I create several Elastic IPs and am able to associate one by one to the instance.
I got a domain name example.zapto.org from noip.com, I connect to example.zapto.org from my Mac via Microsoft Remote Desktop. I realize that every time I associate a different Elastic IP to the instance and change the IP of youxiang.zapto.org, the remote connection is dropped.
I try to automate the above process by Python code, but it still disconnects.
Is there a way to avoid the remote disconnection and make the change of IP smoother?