Win7下 Fport 软件不起作用了,还是用命名了:
cmd下:

C:\Users\cyrus>netstat -nao

活动连接

协议 本地地址          外部地址        状态           PID
TCP    0.0.0.0:135            0.0.0.0:0              LISTENING       780
TCP    0.0.0.0:445            0.0.0.0:0              LISTENING       4
TCP    0.0.0.0:5357           0.0.0.0:0              LISTENING       4
TCP    0.0.0.0:44080          0.0.0.0:0              LISTENING       3896
TCP    0.0.0.0:44110          0.0.0.0:0              LISTENING       4060
TCP    0.0.0.0:49152          0.0.0.0:0              LISTENING       432
TCP    0.0.0.0:49153          0.0.0.0:0              LISTENING       848
TCP    0.0.0.0:49154          0.0.0.0:0              LISTENING       972
TCP    0.0.0.0:49155          0.0.0.0:0              LISTENING       504
TCP    0.0.0.0:49156          0.0.0.0:0              LISTENING       488
TCP    192.168.1.5:139        0.0.0.0:0              LISTENING       4
TCP    192.168.1.5:49751      66.249.89.106:80       TIME_WAIT       0
TCP    [::]:135               [::]:0                 LISTENING       780
TCP    [::]:445               [::]:0                 LISTENING       4
TCP    [::]:5357              [::]:0                 LISTENING       4
TCP    [::]:49152             [::]:0                 LISTENING       432
TCP    [::]:49153             [::]:0                 LISTENING       848
TCP    [::]:49154             [::]:0                 LISTENING       972
TCP    [::]:49155             [::]:0                 LISTENING       504
TCP    [::]:49156             [::]:0                 LISTENING       488
UDP    0.0.0.0:500            *:*                                    972

查到当前使用的开放端口的进程ID(PID)

然后调用:>tasklist /fi "pid eq 488"