问题
can't connect to an dotnet app running in an aws EC2 instance on port 7070 I've added the port to the security group and when I check if the port is open (netstat -ntlp) I get the output below:
tcp 0 0 127.0.0.1:7070 0.0.0.0:* LISTEN 27021/dotnet
Is there anything I'm missing?
回答1:
I was able to fix the issue by downloading nginx to my EC2 instance (https://gist.github.com/soheilhy/8b94347ff8336d971ad0) and forwarding my custom port to port 80
Hopefully this will help!
来源:https://stackoverflow.com/questions/62491794/dotnet-app-on-ec2-linux-port-7070-not-accessible