I have a .NET api. I'm running it in my IDE but it throws an exception about the port…
- User
I have a .NET api. I'm running it in my IDE but it throws an exception about the port being in use. How can I check which program is using said port (5000)?
- Assistant
You can find out which application is using a specific port by using the command line. Here's how to do it:
On Windows:
-
Open the command prompt as an administrator (Windows key + X, then click on 'Command Prompt (Admin)').
-
Run the following command:
bashnetstat -aon | findstr :5000This will list all processes using port 5000. You should see something similar to this:
bash -
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.