addressalign-toparrow-leftarrow-leftarrow-right-10x10arrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1languagelaunch-new-window--smalllight-bulblightning-boltlinklocation-pinlockm-swarmSearchmailmediummessagesminusmobilemoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstar-shapestartickettrashtriangle-downtriangle-uptwitteruserwarningyahooyoutube

Re: [JSChannel-Bangalore] NodeJs App in AWS is not accessible from Internet.

From: Siddharth R
Sent on: Thursday, August 10, 2017, 6:24 PM
Cant you guys talk on some IRC or Stackoverflow this?
 Everybody in this list are getting spammed.

On Thu, Aug 10, 2017 at 6:04 PM, Rohith <[address removed]> wrote:
Hi Vishwas,

Yes, I have used CORS in my node app, that is not the problem.

Please let me know if I have missed anything.

Regards

 Rohith Kumar
 [masked]
On Thursday 10 August 2017, 5:56:08 PM IST, Vishwasrao Salunkhe <JSChannel-Bangalore-list@meetup.com> wrote:


Hi Rohith,
If you are getting error related to  CORS, then install cors npm package in node and try.
I was facing similar issue. 

Let me know for any concern or issue.

Thanks,
Vishwas

On 10-Aug[masked]:47 PM, "Rohith" <JSChannel-Bangalore-list@ meetup.com> wrote:
Hi,

I have free tier AWS Linux instance, I had installed Node Js and started (npm start) my app is running on port 3000.
When I ssh to the instance and do CURL my app is responding but not from Chrome using Instance Public IP.

I have added Ports 80, 22, 3000, 3001 in Security Groups to access the app from anywhere. [Attached ScreenShot]
The instance is running in N. Virginia region.

Following are the cases I tried to make it work:
  • Started my app using Public IP with port 3000 
  • Started my app using Private IP with port 3000 
  • Started my app using '[masked]' with port 3000 
  • Started my app using 'localhost' with port 3000
  • I have added IPTable to allow request using port 3000
    • iptables -A INPUT -p tcp -m tcp --sport 3000 -j ACCEPT
    • iptables -A OUTPUT -p tcp -m tcp --sport 3000 -j ACCEPT

All the above cases failed, when I ssh to the instance and do CURL my app is responding.

Could someone give me more insights on this?
Or I am missing anything.

Softwares install on the server using yum:
  • yum update
  • gcc-c++ make
  • openssl-devel
  • nodejs from official website
  • npm install -g npm // update npm
  • mongodb

Could you also please share your contact details to have private chat, if required.

Regards
 Rohith Kumar





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list (JSChannel-Bangalore-list@ meetup.com)
This message was sent by Meetup on behalf of Rohith from JSChannel Bengaluru.
To report this message, please click here
To block the sender of this message, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list (JSChannel-Bangalore-list@meetup.com)
This message was sent by Meetup on behalf of Vishwasrao Salunkhe from JSChannel Bengaluru.
To report this message, please click here
To block the sender of this message, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list (JSChannel-Bangalore-list@meetup.com)
This message was sent by Meetup on behalf of Rohith from JSChannel Bengaluru.
To report this message, please click here
To block the sender of this message, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]

People in this
group are also in: