0

I have the following in my appsettings.json

  "Kestrel": {
"EndPoints": {
  "Http": {
    "Url": "http://0.0.0.0:1000"
  },
  "Https": {
    "Url": "http://0.0.0.0:1001"
  }
 }
}

And when I publish the application and deploy it to the server. I run the following command

dotnet run appname.dll

and I get the following message at the console on the server

enter image description here

But when I visit the IP address and port on the browser, i get the following

enter image description here

Please how can I resolve this to reach the application from the browser?

Josh
  • 1,660
  • 5
  • 33
  • 55
  • Are you using the correct URL with port? Is there a firewall running on the Linux machine with that port opened up for ingress? – DavidG Jun 20 '23 at 13:02
  • @DavidG I am using the correct IP address and port but I'm not aware of any firewall on the port. – Josh Jun 20 '23 at 13:08
  • Are you trying to visit the application from the same machine as the server? If not, what happens when you do? – Luke Jun 20 '23 at 13:13
  • @Luke I am trying to reach the application from the browser over the internet. There is no browser on the server for me to try that on the same machine – Josh Jun 20 '23 at 14:27
  • In that case, I'm guessing that this is likely a firewall or a port forwarding issue. Have you forwarded ports 1000 and 1001 to your host machines local IP in your router configuration? – Luke Jun 20 '23 at 14:30

0 Answers0