Cant access https localhost5001 with chrome nor brave for asp net project


ASP.NET is a popular programming language used for developing web applications. It provides a framework for dynamic websites, web services, and web applications. However, sometimes developers may encounter issues their ASP.NET projects on certain browsers, such as Chrome or Brave. In this article, we will explore the solutions to the problem of not being able to access an ASP.NET project on localhost:5001 using Chrome or Brave.

Possible Causes

There could be several reasons why you are unable to access your ASP.NET project on localhost:5001 using Chrome or Brave. Some of the common causes include:

  • Firewall or antivirus software the connection
  • Incorrect configuration of the ASP.NET project
  • Browser-specific issues or settings

Solution 1: Check Firewall and Antivirus Settings

The first step is to ensure that your firewall or antivirus software is not blocking the connection to localhost:5001. These security measures can sometimes interfere with the communication between your browser and the ASP.NET project. To check the firewall and antivirus settings:

  1. Open your firewall or antivirus software settings.
  2. Look for any rules or settings that may be blocking the connection to localhost:5001.
  3. If you find any such rules, modify them to allow the connection.

After making the necessary changes, try accessing your ASP.NET project using Chrome or Brave.

Solution 2: Verify ASP.NET Project Configuration

Incorrect configuration of the ASP.NET project can also cause issues with accessing it on certain browsers. To verify the project configuration:

  1. Open your ASP.NET project in Visual Studio or any other development environment.
  2. Check the project properties and ensure that it is configured to run on localhost:5001.
  3. Verify that the project is set up to use the SSL certificate, if applicable.

If any configuration settings are incorrect, make the necessary changes and try accessing the project again.

Solution 3: Browser-Specific Issues

Some browsers may have specific settings or issues that prevent them from accessing ASP.NET projects on localhost:5001. To troubleshoot browser-specific issues:

  1. Clear the cache and cookies of your browser.
  2. Disable any browser extensions or plugins that may interfere with the connection.
  3. Try accessing the ASP.NET project in an incognito or private browsing window.

If none of the above solutions work, you can try using a different browser to access your ASP.NET project.


Here is an example of ASP.NET code that can be used to create a simple web application:

using System;

namespace HelloWorld
    class Program
         void Main(string[] args)
            Console.WriteLine("Hello, World!");

After writing the above code, you can compile and run it to see the “Hello, World!” displayed in the console.


Accessing an ASP.NET project on localhost:5001 using Chrome or Brave can sometimes be challenging due to various reasons. In this article, we discussed some possible causes and provided solutions to help you resolve the issue. By checking firewall and antivirus settings, verifying project configuration, and troubleshooting browser-specific issues, you should be able to access your ASP.NET project successfully. Remember to always keep your development environment and browsers up to date to avoid issues.

Rate this post

Leave a Reply

Your email address will not be published. Required fields are marked *

Table of Contents