How to use the netstat command?

-1

I'm testing a local java application on my local computer, but I can not upload my application because port 8080 is being used by some service that I do not know what it is.

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

I tried it that way, but it did not 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)
$
    
asked by anonymous 14.11.2017 / 15:36

1 answer

5

You can use this command:

  

netstat -nabo

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

Example:

  

netstat -nabo | find "8080"

Or depending on the command prompt:

  

netstat -nabo | findstr "8080"

But it will not fetch all the information from the first command.

Note: use cmd as an administrator.

    
14.11.2017 / 15:53