Can't access my nodeJS web app hosted on AWS EC2 through browser The Next CEO of Stack OverflowHow to configure direct http access to EC2 instance?Enabling HTTPS on express.jsAmazon ec2 not working when accessing through public IPUnable to access website hosted on AWS EC2 InstanceCan't connect apache running on Amazon EC2Accessing ElasticSearch on EC2 instance from outside the cloudAWS EC2 instance access internal serverCannot access nodejs server from outside ec2 instanceAccess to RStudio Server hosted on EC2 through Django App on S3Cannot connect to EC2 web app from external browser

Planeswalker Ability and Death Timing

How to compactly explain secondary and tertiary characters without resorting to stereotypes?

My boss doesn't want me to have a side project

What day is it again?

Prodigo = pro + ago?

Raspberry pi 3 B with Ubuntu 18.04 server arm64: what pi version

Compensation for working overtime on Saturdays

How to show a landlord what we have in savings?

What does this strange code stamp on my passport mean?

Does int main() need a declaration on C++?

How does a dynamic QR code work?

"Eavesdropping" vs "Listen in on"

How seriously should I take size and weight limits of hand luggage?

How to implement Comparable so it is consistent with identity-equality

My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?

What difference does it make matching a word with/without a trailing whitespace?

How to find if SQL server backup is encrypted with TDE without restoring the backup

Compilation of a 2d array and a 1d array

logical reads on global temp table, but not on session-level temp table

Does Germany produce more waste than the US?

Can I cast Thunderwave and be at the center of its bottom face, but not be affected by it?

What happens if you break a law in another country outside of that country?

That's an odd coin - I wonder why

pgfplots: How to draw a tangent graph below two others?



Can't access my nodeJS web app hosted on AWS EC2 through browser



The Next CEO of Stack OverflowHow to configure direct http access to EC2 instance?Enabling HTTPS on express.jsAmazon ec2 not working when accessing through public IPUnable to access website hosted on AWS EC2 InstanceCan't connect apache running on Amazon EC2Accessing ElasticSearch on EC2 instance from outside the cloudAWS EC2 instance access internal serverCannot access nodejs server from outside ec2 instanceAccess to RStudio Server hosted on EC2 through Django App on S3Cannot connect to EC2 web app from external browser










0















I have hosted a nodeJS application on AWS ec2 instance which I can access through ssh but not through my browser i.e, http.



There is no error logged on the console it only shows the following message in the browser:




"unable to connect"




I am aware about security groups and checked them twice I've included http as well as https properly. Please help



inbound (ingress) configuration










share|improve this question
























  • Can you please attach your inbound (ingress) configuration?

    – Rotemya
    Mar 8 at 19:08











  • Please check I've added it.

    – Chaitanya Giri
    Mar 8 at 20:38











  • Can you post your NodeJS code? on which port you're listening? Plus can you try to Curl it?

    – Rotemya
    Mar 8 at 20:42











  • It's a huge code so I can't really share the code I am listening on 4000 I'll try to curl and update you

    – Chaitanya Giri
    Mar 8 at 21:09












  • Also check that you modify the correct Security Group which should be attached your EC2 instance

    – Mostafa Hussein
    Mar 8 at 22:59















0















I have hosted a nodeJS application on AWS ec2 instance which I can access through ssh but not through my browser i.e, http.



There is no error logged on the console it only shows the following message in the browser:




"unable to connect"




I am aware about security groups and checked them twice I've included http as well as https properly. Please help



inbound (ingress) configuration










share|improve this question
























  • Can you please attach your inbound (ingress) configuration?

    – Rotemya
    Mar 8 at 19:08











  • Please check I've added it.

    – Chaitanya Giri
    Mar 8 at 20:38











  • Can you post your NodeJS code? on which port you're listening? Plus can you try to Curl it?

    – Rotemya
    Mar 8 at 20:42











  • It's a huge code so I can't really share the code I am listening on 4000 I'll try to curl and update you

    – Chaitanya Giri
    Mar 8 at 21:09












  • Also check that you modify the correct Security Group which should be attached your EC2 instance

    – Mostafa Hussein
    Mar 8 at 22:59













0












0








0








I have hosted a nodeJS application on AWS ec2 instance which I can access through ssh but not through my browser i.e, http.



There is no error logged on the console it only shows the following message in the browser:




"unable to connect"




I am aware about security groups and checked them twice I've included http as well as https properly. Please help



inbound (ingress) configuration










share|improve this question
















I have hosted a nodeJS application on AWS ec2 instance which I can access through ssh but not through my browser i.e, http.



There is no error logged on the console it only shows the following message in the browser:




"unable to connect"




I am aware about security groups and checked them twice I've included http as well as https properly. Please help



inbound (ingress) configuration







node.js amazon-web-services amazon-ec2 deployment keystonejs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 22:56









jo_va

7,6432929




7,6432929










asked Mar 8 at 19:01









Chaitanya GiriChaitanya Giri

32




32












  • Can you please attach your inbound (ingress) configuration?

    – Rotemya
    Mar 8 at 19:08











  • Please check I've added it.

    – Chaitanya Giri
    Mar 8 at 20:38











  • Can you post your NodeJS code? on which port you're listening? Plus can you try to Curl it?

    – Rotemya
    Mar 8 at 20:42











  • It's a huge code so I can't really share the code I am listening on 4000 I'll try to curl and update you

    – Chaitanya Giri
    Mar 8 at 21:09












  • Also check that you modify the correct Security Group which should be attached your EC2 instance

    – Mostafa Hussein
    Mar 8 at 22:59

















  • Can you please attach your inbound (ingress) configuration?

    – Rotemya
    Mar 8 at 19:08











  • Please check I've added it.

    – Chaitanya Giri
    Mar 8 at 20:38











  • Can you post your NodeJS code? on which port you're listening? Plus can you try to Curl it?

    – Rotemya
    Mar 8 at 20:42











  • It's a huge code so I can't really share the code I am listening on 4000 I'll try to curl and update you

    – Chaitanya Giri
    Mar 8 at 21:09












  • Also check that you modify the correct Security Group which should be attached your EC2 instance

    – Mostafa Hussein
    Mar 8 at 22:59
















Can you please attach your inbound (ingress) configuration?

– Rotemya
Mar 8 at 19:08





Can you please attach your inbound (ingress) configuration?

– Rotemya
Mar 8 at 19:08













Please check I've added it.

– Chaitanya Giri
Mar 8 at 20:38





Please check I've added it.

– Chaitanya Giri
Mar 8 at 20:38













Can you post your NodeJS code? on which port you're listening? Plus can you try to Curl it?

– Rotemya
Mar 8 at 20:42





Can you post your NodeJS code? on which port you're listening? Plus can you try to Curl it?

– Rotemya
Mar 8 at 20:42













It's a huge code so I can't really share the code I am listening on 4000 I'll try to curl and update you

– Chaitanya Giri
Mar 8 at 21:09






It's a huge code so I can't really share the code I am listening on 4000 I'll try to curl and update you

– Chaitanya Giri
Mar 8 at 21:09














Also check that you modify the correct Security Group which should be attached your EC2 instance

– Mostafa Hussein
Mar 8 at 22:59





Also check that you modify the correct Security Group which should be attached your EC2 instance

– Mostafa Hussein
Mar 8 at 22:59












1 Answer
1






active

oldest

votes


















0














Did you configure a web server to direct the requests from the AWS URL to the nodejs application you are running?



Try checking out nginx (https://www.nginx.com/), its really easy and fast to cofigure.



Here is a minimal configuration template:



server 
listen 80;
server_name <aws-url>;
location /
proxy_pass 127.0.0.1:<node-port>;







share|improve this answer

























  • Do I need ngnix on top of nodeJS server. I do not see any reason how that will help? Please explain a bit

    – Chaitanya Giri
    Mar 8 at 20:27











  • You don't need it if you run your node server in port 80, but that is a high privilege port, so you can only do that if you run your application as root, which is not recommended. The recommended way is a web server, such as nginx, to create a proxy pass to your application.

    – Renato Vassão
    Mar 8 at 21:41












  • Thanks a lot that resolved it. I was stuck at it for so long thanks again.

    – Chaitanya Giri
    Mar 8 at 23:51











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55069417%2fcant-access-my-nodejs-web-app-hosted-on-aws-ec2-through-browser%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









0














Did you configure a web server to direct the requests from the AWS URL to the nodejs application you are running?



Try checking out nginx (https://www.nginx.com/), its really easy and fast to cofigure.



Here is a minimal configuration template:



server 
listen 80;
server_name <aws-url>;
location /
proxy_pass 127.0.0.1:<node-port>;







share|improve this answer

























  • Do I need ngnix on top of nodeJS server. I do not see any reason how that will help? Please explain a bit

    – Chaitanya Giri
    Mar 8 at 20:27











  • You don't need it if you run your node server in port 80, but that is a high privilege port, so you can only do that if you run your application as root, which is not recommended. The recommended way is a web server, such as nginx, to create a proxy pass to your application.

    – Renato Vassão
    Mar 8 at 21:41












  • Thanks a lot that resolved it. I was stuck at it for so long thanks again.

    – Chaitanya Giri
    Mar 8 at 23:51















0














Did you configure a web server to direct the requests from the AWS URL to the nodejs application you are running?



Try checking out nginx (https://www.nginx.com/), its really easy and fast to cofigure.



Here is a minimal configuration template:



server 
listen 80;
server_name <aws-url>;
location /
proxy_pass 127.0.0.1:<node-port>;







share|improve this answer

























  • Do I need ngnix on top of nodeJS server. I do not see any reason how that will help? Please explain a bit

    – Chaitanya Giri
    Mar 8 at 20:27











  • You don't need it if you run your node server in port 80, but that is a high privilege port, so you can only do that if you run your application as root, which is not recommended. The recommended way is a web server, such as nginx, to create a proxy pass to your application.

    – Renato Vassão
    Mar 8 at 21:41












  • Thanks a lot that resolved it. I was stuck at it for so long thanks again.

    – Chaitanya Giri
    Mar 8 at 23:51













0












0








0







Did you configure a web server to direct the requests from the AWS URL to the nodejs application you are running?



Try checking out nginx (https://www.nginx.com/), its really easy and fast to cofigure.



Here is a minimal configuration template:



server 
listen 80;
server_name <aws-url>;
location /
proxy_pass 127.0.0.1:<node-port>;







share|improve this answer















Did you configure a web server to direct the requests from the AWS URL to the nodejs application you are running?



Try checking out nginx (https://www.nginx.com/), its really easy and fast to cofigure.



Here is a minimal configuration template:



server 
listen 80;
server_name <aws-url>;
location /
proxy_pass 127.0.0.1:<node-port>;








share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 8 at 21:50

























answered Mar 8 at 19:28









Renato VassãoRenato Vassão

915




915












  • Do I need ngnix on top of nodeJS server. I do not see any reason how that will help? Please explain a bit

    – Chaitanya Giri
    Mar 8 at 20:27











  • You don't need it if you run your node server in port 80, but that is a high privilege port, so you can only do that if you run your application as root, which is not recommended. The recommended way is a web server, such as nginx, to create a proxy pass to your application.

    – Renato Vassão
    Mar 8 at 21:41












  • Thanks a lot that resolved it. I was stuck at it for so long thanks again.

    – Chaitanya Giri
    Mar 8 at 23:51

















  • Do I need ngnix on top of nodeJS server. I do not see any reason how that will help? Please explain a bit

    – Chaitanya Giri
    Mar 8 at 20:27











  • You don't need it if you run your node server in port 80, but that is a high privilege port, so you can only do that if you run your application as root, which is not recommended. The recommended way is a web server, such as nginx, to create a proxy pass to your application.

    – Renato Vassão
    Mar 8 at 21:41












  • Thanks a lot that resolved it. I was stuck at it for so long thanks again.

    – Chaitanya Giri
    Mar 8 at 23:51
















Do I need ngnix on top of nodeJS server. I do not see any reason how that will help? Please explain a bit

– Chaitanya Giri
Mar 8 at 20:27





Do I need ngnix on top of nodeJS server. I do not see any reason how that will help? Please explain a bit

– Chaitanya Giri
Mar 8 at 20:27













You don't need it if you run your node server in port 80, but that is a high privilege port, so you can only do that if you run your application as root, which is not recommended. The recommended way is a web server, such as nginx, to create a proxy pass to your application.

– Renato Vassão
Mar 8 at 21:41






You don't need it if you run your node server in port 80, but that is a high privilege port, so you can only do that if you run your application as root, which is not recommended. The recommended way is a web server, such as nginx, to create a proxy pass to your application.

– Renato Vassão
Mar 8 at 21:41














Thanks a lot that resolved it. I was stuck at it for so long thanks again.

– Chaitanya Giri
Mar 8 at 23:51





Thanks a lot that resolved it. I was stuck at it for so long thanks again.

– Chaitanya Giri
Mar 8 at 23:51



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55069417%2fcant-access-my-nodejs-web-app-hosted-on-aws-ec2-through-browser%23new-answer', 'question_page');

);

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







Popular posts from this blog

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme