Why does port 3000 work but no other ports do?

Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
I run a program to start a website on a linux server (I'm using Amazon Web Services EC2 virtual server) and I run it from port 3000, so that I can type (ipaddress:3000) into chrome to access the website and it works fine.
When I change the port number to 3004, 3005, 3007, 4200 etc and go to the corresponding url in chrome it gives me the message "page isn't working." I used netstat -lnptu to find a list of open ports and it doesn't list any of those ports so I don't get why I can't use them instead of 3000.
EDIT: You can solve this by looking at your EC2 instances in your Amazon Management Console, then scrolling to the right side of the instances panel and clicking on "security groups" (of the instance you want to add a new rule to), then you should be at a page which has a bottom panel that says "security groups: [group id of your instance]", then for inbound rules click "edit" and add a new rule.
aws
add a comment |
up vote
3
down vote
favorite
I run a program to start a website on a linux server (I'm using Amazon Web Services EC2 virtual server) and I run it from port 3000, so that I can type (ipaddress:3000) into chrome to access the website and it works fine.
When I change the port number to 3004, 3005, 3007, 4200 etc and go to the corresponding url in chrome it gives me the message "page isn't working." I used netstat -lnptu to find a list of open ports and it doesn't list any of those ports so I don't get why I can't use them instead of 3000.
EDIT: You can solve this by looking at your EC2 instances in your Amazon Management Console, then scrolling to the right side of the instances panel and clicking on "security groups" (of the instance you want to add a new rule to), then you should be at a page which has a bottom panel that says "security groups: [group id of your instance]", then for inbound rules click "edit" and add a new rule.
aws
AWS uses security groups to open up ports. You should be using that tool to open port 3000
– ryekayo
May 23 '16 at 15:35
Oh, I see. Thank you ryekayo.
– Lily Potter
May 23 '16 at 15:40
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I run a program to start a website on a linux server (I'm using Amazon Web Services EC2 virtual server) and I run it from port 3000, so that I can type (ipaddress:3000) into chrome to access the website and it works fine.
When I change the port number to 3004, 3005, 3007, 4200 etc and go to the corresponding url in chrome it gives me the message "page isn't working." I used netstat -lnptu to find a list of open ports and it doesn't list any of those ports so I don't get why I can't use them instead of 3000.
EDIT: You can solve this by looking at your EC2 instances in your Amazon Management Console, then scrolling to the right side of the instances panel and clicking on "security groups" (of the instance you want to add a new rule to), then you should be at a page which has a bottom panel that says "security groups: [group id of your instance]", then for inbound rules click "edit" and add a new rule.
aws
I run a program to start a website on a linux server (I'm using Amazon Web Services EC2 virtual server) and I run it from port 3000, so that I can type (ipaddress:3000) into chrome to access the website and it works fine.
When I change the port number to 3004, 3005, 3007, 4200 etc and go to the corresponding url in chrome it gives me the message "page isn't working." I used netstat -lnptu to find a list of open ports and it doesn't list any of those ports so I don't get why I can't use them instead of 3000.
EDIT: You can solve this by looking at your EC2 instances in your Amazon Management Console, then scrolling to the right side of the instances panel and clicking on "security groups" (of the instance you want to add a new rule to), then you should be at a page which has a bottom panel that says "security groups: [group id of your instance]", then for inbound rules click "edit" and add a new rule.
aws
aws
edited Dec 7 at 23:42
Rui F Ribeiro
38.7k1479128
38.7k1479128
asked May 23 '16 at 15:33
Lily Potter
1183
1183
AWS uses security groups to open up ports. You should be using that tool to open port 3000
– ryekayo
May 23 '16 at 15:35
Oh, I see. Thank you ryekayo.
– Lily Potter
May 23 '16 at 15:40
add a comment |
AWS uses security groups to open up ports. You should be using that tool to open port 3000
– ryekayo
May 23 '16 at 15:35
Oh, I see. Thank you ryekayo.
– Lily Potter
May 23 '16 at 15:40
AWS uses security groups to open up ports. You should be using that tool to open port 3000
– ryekayo
May 23 '16 at 15:35
AWS uses security groups to open up ports. You should be using that tool to open port 3000
– ryekayo
May 23 '16 at 15:35
Oh, I see. Thank you ryekayo.
– Lily Potter
May 23 '16 at 15:40
Oh, I see. Thank you ryekayo.
– Lily Potter
May 23 '16 at 15:40
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
I have posted this as a comment, but will do so as an answer. AWS utilizes a tool called Security Groups which will allow you to open/close ports and assign firewall rules to your ec2 instance. It is best practice to use that to open up port 3000 and assign it to your instance.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f284953%2fwhy-does-port-3000-work-but-no-other-ports-do%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
I have posted this as a comment, but will do so as an answer. AWS utilizes a tool called Security Groups which will allow you to open/close ports and assign firewall rules to your ec2 instance. It is best practice to use that to open up port 3000 and assign it to your instance.
add a comment |
up vote
3
down vote
accepted
I have posted this as a comment, but will do so as an answer. AWS utilizes a tool called Security Groups which will allow you to open/close ports and assign firewall rules to your ec2 instance. It is best practice to use that to open up port 3000 and assign it to your instance.
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
I have posted this as a comment, but will do so as an answer. AWS utilizes a tool called Security Groups which will allow you to open/close ports and assign firewall rules to your ec2 instance. It is best practice to use that to open up port 3000 and assign it to your instance.
I have posted this as a comment, but will do so as an answer. AWS utilizes a tool called Security Groups which will allow you to open/close ports and assign firewall rules to your ec2 instance. It is best practice to use that to open up port 3000 and assign it to your instance.
answered May 23 '16 at 15:42
ryekayo
2,87592449
2,87592449
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f284953%2fwhy-does-port-3000-work-but-no-other-ports-do%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
AWS uses security groups to open up ports. You should be using that tool to open port 3000
– ryekayo
May 23 '16 at 15:35
Oh, I see. Thank you ryekayo.
– Lily Potter
May 23 '16 at 15:40