Wednesday, November 13, 2013

Who using my port 80/8080/8085/Other?

Windows Plataform

> netstat -aon  | grep "LIST"
> netstat -aon  | grep ":80" | grep "LIST"

*Get pid (Process id) and execute next command

>tasklist | grep "xxxx" 

* xxxx is pid value

Resume for W7


>netstat -aon  | grep ":80" | findstr "LIST"
>tasklist | findstr "xxxx" 
Linux Plataform
#lsof

or

#netstat -tulpn | grep :80

..continue


Notes:
If you mean MS-DOS then there's only FIND, as far as I know. But it's an ancient OS not used anymore.
If you mean NT(XP/2K/7/Vista)'s Command Prompt you can use find, findstr and grep if you download GnuWin32.
The basic differences are that findstr has some regex support. Grep supports regex best.

References:
[1] http://superuser.com/questions/300815/command-prompt-msdos-windows-7-grep-equivalent


No comments:

Ubuntu Forware port 80

  #!/bin/bash iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069 iptables -t nat -A PREROUTING -i eth0 -p tc...