1、cmd命令行下输入:tasklist /svc 在输出的内容中查找svchost.exe进程下 TermService服务对应的PID 2、输入命令:netstat -ano 找到对应PID就能找到对应远程端口