1

I'm unable to connect to my Ubuntu EC2 instance on port 5000 where my app is running.

  1. I have security group rule in place to allow 80 and 5000

  2. Ubuntu firewall is disabled -sudo ufw disable and I tried enabling it and added port 5000 as well

  3. I'm able to ping the server

  4. But accessing port 5000 does not work

Tra
  • 43
  • 8

1 Answers1

0

If working on localhost, and SG also allow the traffic then it Seems like your server is bind with localhost, update to server configuration to listen 0.0.0.0.

Add this in the configuration.

UseUrls("http://0.0.0.0:5001/") 

How do I get the kestrel web server to listen to non-localhost requests?

Adiii
  • 54,482
  • 7
  • 145
  • 148