How to use netstat command?

Asked

Viewed 1,293 times

0

I am testing on my local computer a java application, but I can’t get my application up because port 8080 is being used by some service that I don’t know which is.

How do I know which service is running on door 8080 with the command netstat?

I tried that way, but it didn’t work:

Wladimir@wlady MINGW64 ~/Desktop/anotação sql postgre (master)
$ netstat -nabo
A opera▒▒o solicitada requer eleva▒▒o.

Wladimir@wlady MINGW64 ~/Desktop/anotação sql postgre (master)
$ netstat -nabo | find "8080"
find: ‘8080’: No such file or directory

Wladimir@wlady MINGW64 ~/Desktop/anotação sql postgre (master)
$

1 answer

6

You can use this command:

netstat-turnip

You can also filter by adding some text | find "text".

Example:

netstat -nabo | find "8080"

Or depending on the command prompt:

netstat -nabo | findstr "8080"

However it will not bring all the information from the first command.

Obs: use cmd as administrator.

  • i updated my post could take a look please.

  • 1

    It looks like you’re using gitbash. find works on the default Windows cmd, gitbash instead of find, use findstr. Note the message "Opera the requested requires raises", run your command prompt as administrator to avoid problems.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.