J
J
Julia2021-05-16 15:02:22
Windows
Julia, 2021-05-16 15:02:22

How to find out what localhost:3050 is occupying?

I have a cloned git program. To run it, you need to run the build-start.sh command (the `build-start.sh` executable file is located in the root of the project) and then npm start.
But the launch fails and the terminal says that localhost 3050 is already busy.
How can I release it and overwrite the program I need on it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2021-05-16
@yellowmew

The tags indicate windows.
1 netstat -nba
And we are looking for our port, who occupies. Run command prompt as administrator of
course 1.a

Get-NetTCPConnection -LocalPort 3050 | Select LocalAddress, RemoteAddress, RemotePort, @{Label='ProcessName';Expression={(Get-Process -id $_.OwningProcess).ProcessName}}

The same in powershell and filtering by the desired local port. Also under admin.
2. There is generally an option that the error is not about this at all, but about the fact that the port cannot be opened, due to the fact that you are not running your script under the administrator
3. You are using windows and at the same time .sh scripts
Perhaps you you don’t agree on something: for example, what interpreter do you use to run .sh scripts under windows and do you run them from under wsl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question