Use the Amazon Lightsail Dashboard to Create a Static IP Address for a WordPress Instance
In this lesson, you'll learn how to create and assign a static IP address to a WordPress instance in the Amazon Lightsail console. We'll walk through the implications of a dynamic IP address, why a static IP address helps maintain a stable address, and how...
Duration
2 min
Access
Free
Transcript
Available
In this lesson, you'll learn how to create and assign a static IP address to a WordPress instance in the Amazon Lightsail console. We'll walk through the implications of a dynamic IP address, why a static IP address helps maintain a stable address, and how you can create a static IP address to use for your WordPress site.
Video Transcript
Colby Fayock: We're going to start off with a WordPress instance in AWS Lightsail. By default, AWS provides us with a public IP. We can use this IP to access our WordPress site.
This IP is dynamic, meaning if I were to stop this instance, we can see that we no longer have a public IP. If I start it back up, we can see that we have a new public IP, which, if we go to in our browser, is now where our WordPress site lives.
AWS also provides us with the ability to create a static IP. Which means every time we stop and start our server, it's always going to be available at that static IP. We can get started by clicking Create static IP.
Here we can first set the IP location. Since I'm in the northeast of the United States, I'm going to leave mine at Virginia. Next, we want to attach it to an instance. In this instance, we want to select our WordPress app.
Additionally, we can also add a name for our static IP. Since our WordPress instance is called MyWordPressApp, I'm going to name it similarly to MyWordPressAppStaticIp. Finally, we can hit Create. Once that's done, we already have a public static IP address.
Similar to before, we can now open that up in our browser and we can see our WordPress site. If we go back over to our WordPress instance, we can see under the Networking tab that we now have that static IP. We can also see, if we Stop and Start back up our instance, where we can now see that we have the same static IP, where we can refresh our tab and see that that IP still works.
In review, with the default dynamic IP, every time we stopped and restarted our WordPress instance, we would change that IP. To prevent that IP from changing, we can assign a static IP using AWS. Once that's assigned, we can stop and restart our server, where we always have this IP, then we can open up and access our WordPress site.