Rider Asp web server closing connections on Ubuntu

If i made a basic asp.NetCore web application and run the application through the rider application. It will start my browser displaying the correct URL (localhost:5001). The issue is that the connection gets refused. 

If I use the console and do 'dotnet run' either through a terminal window or through the console inside rider the application runs correctly and is accessible through the browser. 

The issue with this is that the rider debugger will not work when the application is run in this manner. 

Anyone able to give me any pointers?

Please sign in to leave a comment.