netstat -ano to view all ports
netstat -ano|findstr "1935" View the PID occupied by port 1935
tasklist|findstr "PID”