I accidentally disabled network connectivity to my Amazon EC2 Windows instance. How do I fix it?
Last updated: 2020-11-10
I accidentally disabled network connectivity in Windows, and I’ve lost connection to my Amazon Elastic Compute Cloud (Amazon EC2) Windows instance. How can I fix this?
You can create a temporary elastic network interface, and attach the network interface to the Amazon EC2 Windows instance. Then, you can temporarily connect to the instance and fix the issue.
- Open the Amazon EC2 console, and then choose Instances from the navigation pane.
- Select your instance. From the Description tab, note the Subnet ID.
- Create a new network interface in the same subnet as the instance.
Important: Be sure to select a security group that allows incoming Remote Desktop Protocol (RDP) traffic from your IP address.
- Attach the new network interface to the instance.
Note: The network interface might take a few minutes to come online. If you connect to the instance using RDP, associate an Elastic IP address with the network interface.
- Using the new network interface, connect to the instance using RDP.
- Change the network connection settings in Windows to use DHCP. Or, specify the correct private IP address settings. For instructions, see Configuring a secondary private IPv4 address for your Windows instance.
- Detach the temporary network interface.
Note: If you’ve associated an Elastic IP address with the network interface, and no longer need the Elastic IP address, release the Elastic IP address.