{"id":93,"date":"2023-08-12T22:00:00","date_gmt":"2023-08-12T22:00:00","guid":{"rendered":"https:\/\/rishikantsri.in\/blog\/?p=93"},"modified":"2023-09-21T10:18:21","modified_gmt":"2023-09-21T10:18:21","slug":"a-simple-guide-to-adding-a-port-number-on-your-aws-server","status":"publish","type":"post","link":"https:\/\/rishikantsri.in\/blog\/a-simple-guide-to-adding-a-port-number-on-your-aws-server\/","title":{"rendered":"A Simple Guide to Adding a Port Number on Your AWS Server"},"content":{"rendered":"\n<p>Amazon Web Services (AWS) is a powerful platform for hosting your applications and services in the cloud. If you&#8217;re using AWS and need to add a port number to your server, you&#8217;ve come to the right place. In this blog post, I&#8217;ll guide you through the process in straightforward terms.<\/p>\n\n\n\n<p><strong>Step 0: Log into Your AWS Account<\/strong><\/p>\n\n\n\n<p>Begin by logging into your AWS account using your login credentials. This will grant you access to the AWS Management Console, where you can manage your AWS resources.<\/p>\n\n\n\n<p><a href=\"https:\/\/aws.amazon.com\/\">https:\/\/aws.amazon.com\/<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"598\" src=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-12-1024x598.png\" alt=\"\" class=\"wp-image-103\" srcset=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-12-1024x598.png 1024w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-12-300x175.png 300w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-12-768x448.png 768w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-12.png 1237w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 1,2: Navigate to the EC2 Dashboard<\/strong><\/p>\n\n\n\n<p>The Elastic Compute Cloud (EC2) is where you manage your virtual servers, or instances, on AWS. After logging in, click on &#8220;Services&#8221; in the top-left corner, then choose &#8220;EC2&#8221; from the &#8220;Compute&#8221; section. This will take you to the EC2 Dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"892\" height=\"687\" src=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-3.png\" alt=\"\" class=\"wp-image-94\" srcset=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-3.png 892w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-3-300x231.png 300w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-3-768x591.png 768w\" sizes=\"(max-width: 892px) 100vw, 892px\" \/><\/figure>\n\n\n\n<p><strong>Step 3,4: Select Your EC2 Instance<\/strong><\/p>\n\n\n\n<p>From the EC2 Dashboard, locate the instance to which you want to add a port number. Click on the instance to open its details.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"454\" src=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-4-1024x454.png\" alt=\"\" class=\"wp-image-95\" srcset=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-4-1024x454.png 1024w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-4-300x133.png 300w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-4-768x340.png 768w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-4.png 1358w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 5,6: Access Security Groups<\/strong><\/p>\n\n\n\n<p>Security Groups serve as virtual firewalls for your EC2 instances, controlling incoming and outgoing traffic. To add a port number, you&#8217;ll need to modify the security group associated with your instance.<\/p>\n\n\n\n<p>Under the &#8220;Description&#8221; tab in your instance details, you&#8217;ll find a section labeled &#8220;Security Groups.&#8221; Click on the name of the security group to view its details.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"357\" src=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-5-1024x357.png\" alt=\"\" class=\"wp-image-96\" srcset=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-5-1024x357.png 1024w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-5-300x105.png 300w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-5-768x268.png 768w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-5-1536x536.png 1536w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-5.png 1725w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"505\" height=\"301\" src=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-6.png\" alt=\"\" class=\"wp-image-97\" srcset=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-6.png 505w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-6-300x179.png 300w\" sizes=\"(max-width: 505px) 100vw, 505px\" \/><\/figure>\n\n\n\n<p><strong>Step 7: Edit Inbound Rules<\/strong><\/p>\n\n\n\n<p>Now, it&#8217;s time to edit the inbound rules for your security group. These rules dictate which traffic is allowed to reach your instance.<\/p>\n\n\n\n<p>Navigate to the &#8220;Inbound rules&#8221; tab and click on &#8220;Edit inbound rules.&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"199\" src=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-7-1024x199.png\" alt=\"\" class=\"wp-image-98\" srcset=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-7-1024x199.png 1024w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-7-300x58.png 300w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-7-768x149.png 768w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-7-1536x298.png 1536w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-7.png 1550w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 8, 9: Add a New Rule<\/strong><\/p>\n\n\n\n<p>To add a new port number, select the &#8220;Add rule&#8221; button, which will create a new row.<\/p>\n\n\n\n<p>In the &#8220;Type&#8221; column, choose the protocol your application uses (e.g., TCP or UDP). In the &#8220;Port range&#8221; column, enter the port number you wish to add, such as 80 for HTTP or 443 for HTTPS.<\/p>\n\n\n\n<p><strong> Define the Source<\/strong><\/p>\n\n\n\n<p>In the &#8220;Source&#8221; column, specify where the traffic is allowed to originate. You can enter a specific IP address or range, or, if necessary, make it accessible to the world by entering &#8220;0.0.0.0\/0&#8221; (though exercise caution with this option).<\/p>\n\n\n\n<p><strong>Review and Save<\/strong><\/p>\n\n\n\n<p>Double-check your settings to ensure accuracy. Once you&#8217;re satisfied, click &#8220;Save rules&#8221; to implement the changes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"410\" src=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-10-1024x410.png\" alt=\"\" class=\"wp-image-101\" srcset=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-10-1024x410.png 1024w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-10-300x120.png 300w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-10-768x307.png 768w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-10-1536x615.png 1536w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-10.png 1837w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 10,11: Verify the Port<\/strong><\/p>\n\n\n\n<p>To confirm that the port number has been added successfully, test it with your application or use online tools to verify its accessibility.<\/p>\n\n\n\n<p><a href=\"https:\/\/dnschecker.org\/\">https:\/\/dnschecker.org\/<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"726\" src=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-11-1024x726.png\" alt=\"\" class=\"wp-image-102\" srcset=\"https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-11-1024x726.png 1024w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-11-300x213.png 300w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-11-768x544.png 768w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-11-1536x1088.png 1536w, https:\/\/rishikantsri.in\/blog\/wp-content\/uploads\/2023\/09\/image-11.png 1596w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Conclusion<\/p>\n\n\n\n<p>Adding a port number to your AWS server is a fundamental task when configuring your applications and services. Following these straightforward steps will empower you to manage incoming traffic to your instance effectively. AWS&#8217;s user-friendly interface and adaptability make it accessible for users of all levels.<\/p>\n\n\n\n<p>Always remember to adhere to security best practices by limiting access to your instances to trusted sources. This approach safeguards your AWS resources and ensures the seamless operation of your applications.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Amazon Web Services (AWS) is a powerful platform for hosting your applications and services in the cloud. If you&#8217;re using AWS and need to add a port number to your server, you&#8217;ve come to the right place. In this blog post, I&#8217;ll guide you through the process in straightforward terms. Step 0: Log into Your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,1],"tags":[7,12],"_links":{"self":[{"href":"https:\/\/rishikantsri.in\/blog\/wp-json\/wp\/v2\/posts\/93"}],"collection":[{"href":"https:\/\/rishikantsri.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rishikantsri.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rishikantsri.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rishikantsri.in\/blog\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":1,"href":"https:\/\/rishikantsri.in\/blog\/wp-json\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":104,"href":"https:\/\/rishikantsri.in\/blog\/wp-json\/wp\/v2\/posts\/93\/revisions\/104"}],"wp:attachment":[{"href":"https:\/\/rishikantsri.in\/blog\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rishikantsri.in\/blog\/wp-json\/wp\/v2\/categories?post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rishikantsri.in\/blog\/wp-json\/wp\/v2\/tags?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}