[Cialug] Port forward problem

Paul Gray gray at cs.uni.edu
Thu Mar 5 15:42:42 CST 2015


On 03/05/2015 11:29 AM, L. V. Lammert wrote:
> # netstat -an | grep 3306
> tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN
> tcp        0      0 ::1:3306                :::*                    LISTEN

This shows listen ports, but not the processes ... and shows something
is indeed listening.
> 
> Nor any processes:
> 
> # ps ax | grep 3306
> 10302 pts/1    S+     0:00 grep --color=auto 3306
> 

This shows processess with the name 3306, not processes mapped to ports.

So you're in need of a better command.  Try one of these:

netstat -nap | grep 3306

or

lsof -i -n | grep 3306


-Paul


More information about the Cialug mailing list