查看服务与端口的关系

1.       使用DOS命令netstat,

2.       查看C:\WINDOWS\system32\drivers\etc目录下的service文件,使用文本方式打开。

 

3.

 百度+google

维基百科上的port- service 对应列表:

 

0到1023号端口 
端口描述
0/TCP,UDP保留端口;不使用(若发送过程不准备接受回复消息,则可以作为源端口)
1/TCP,UDPTCPMUX(传输控制协议端口服务多路开关选择器)
5/TCP,UDPRJE(远程作业登录)
7/TCP,UDPECHO(回显)协议
9/TCP,UDPDISCARD(丢弃)协议
11/TCP,UDPSYSTAT协议
13/TCP,UDPDAYTIME协议
15/TCP,UDPNETSTAT协议
17/TCP,UDPQOTD(Quote of the Day,每日引用)协议
18/TCP,UDP消息发送协议
19/TCP,UDPCHARGEN(字符发生器)协议
20/TCP,UDP文件传输协议 - 默认数据端口
21/TCP,UDP文件傳輸協議 - 控制端口
22/TCP,UDPSSH (Secure Shell) - 远程登录协议,用於安全登錄 文件传输(SCP,SFTP)及端口重新定向
23/TCP,UDPTelnet 终端仿真协议 - 未加密文本通信
25/TCP,UDPSMTP(简单邮件传输协议) - 用于邮件服务器间的电子邮件传递
26/TCP,UDPRSFTP - 一个简单的类似FTP的协议
35/TCP,UDPQMS Magicolor 2 printer
37/TCP,UDPTIME时间协议
39/TCP,UDPResource Location Protocol(资源定位协议)
41/TCP,UDP图形
42/TCP,UDPHost Name Server(主机名服务)
42/TCP,UDPWINS(WINS主机名服务)
43/TCPWHOIS 協議
49/TCP,UDPTACACS 登录主机协议
53/TCP,UDPDNS(域名服务系统)
56/TCP,UDP远程访问协议
57/TCPMTP,邮件传输协议
67/UDPBOOTP(BootStrap协议)服务;同时用于DHCP(动态主机设定协议)
68/UDPBOOTP 客户端;同时用于DHCP(动态主机设定协议)
69/UDPTFTP(小型文件传输协议)
70/TCPGopher信息检索协议
79/TCPFinger协议
80/TCPHTTP(超文本传输协议)- 用于传输网页
81/TCPHTTP预备(超文本传输协议)
81/TCPTorpark - Onion routing ORport
82/UDPTorpark - 控制端口
88/TCPKerberos - 认证代理
101/TCP主机名
102/TCPISO-TSAP 协议
107/TCP远程Telnet协议
109/TCPPOP(Post Office Protocol),“邮局协议”,第2版
110/TCPPOP3(“邮局协议”,第3版)- 用于接收电子邮件
111/TCP,UDPSun协议
113/TCPident - old server identification system, 仍然被IRC 服务器用来认证它的用户
115/TCPSFTP, 简单文件传输协议
117/TCPUUCP-PATH
118/TCP,UDPSQL 服务
119/TCPNNTP (Network News Transfer Protocol) - 用来收取新闻组的消息
123/UDPNTP (Network Time Protocol) - used for time synchronization
135/TCP,UDPEPMAP (End Point Mapper) / Microsoft RPC Locator Service
137/TCP,UDPNetBIOS NetBIOS Name Service
138/TCP,UDPNetBIOS NetBIOS Datagram Service
139/TCP,UDPNetBIOS NetBIOS Session Service
143/TCP,UDPIMAP4 (Internet Message Access Protocol 4) - used for retrieving E-mails
152/TCP,UDPBFTP, Background File Transfer Program
153/TCP,UDPSGMP, Simple Gateway Monitoring Protocol
156/TCP,UDPSQL Service
158/TCP,UDPDMSP, Distributed Mail Service Protocol
161/TCP,UDPSNMP (Simple Network Management Protocol)
162/TCP,UDPSNMPTRAP
170/TCPPrint-srv
179/TCPBGP (Border Gateway Protocol)
194/TCPIRC (Internet Relay Chat)
201/TCP,UDPAppleTalk Routing Maintenance
209/TCP,UDPThe Quick Mail Transfer Protocol
213/TCP,UDPIPX
218/TCP,UDPMPP, Message Posting Protocol
220/TCP,UDPIMAP, Interactive Mail Access Protocol, version 3
259/TCP,UDPESRO, Efficient Short Remote Operations
264/TCP,UDPBGMP,Border Gateway Multicast Protocol
308/TCPNovastor Online Backup
311/TCPApple Server-Admin-Tool, Workgroup-Manager-Tool
318/TCP,UDPTSP, Time Stamp Protocol
323/TCP,UDPIMMP, Internet Message Mapping Protocol
383/TCP,UDPHP OpenView HTTPs Operations Agent
366/TCP,UDPSMTP, Simple Mail Transfer Protocol. ODMR, On-Demand Mail Relay
369/TCP,UDPRpc2portmap
371/TCP,UDPClearCase albd
384/TCP,UDPA Remote Network Server System
387/TCP,UDPAURP, AppleTalk Update-based Routing Protocol
389/TCP,UDPLDAP (Lightweight Directory Access Protocol)
401/TCP,UDPUPS Uninterruptible Power Supply
411/TCPDirect Connect Hub port
412/TCPDirect Connect Client-To-Client port
427/TCP,UDPSLP (Service Location Protocol)
443/TCPHTTPS - HTTP Protocol over TLS/SSL (encrypted transmission)
444/TCP,UDPSNPP,Simple Network Paging Protocol
445/TCPMicrosoft-DS (Active Directory,Windows shares, Sasser worm,Agobot, Zobotworm)
445/UDPMicrosoft-DS SMB file sharing
464/TCP,UDPKerberos Change/Set password
465/TCPCisco protocol
465/TCPSMTP over SSL
475/TCPtcpnethaspsrv (Hasp services, TCP/IP version)
497/TCPdantz backup service
500/TCP,UDPISAKMP,IKE-Internet Key Exchange
502/TCP,UDPModbus,Protocol
512/TCPexec, Remote Process Execution
512/UDPcomsat, together with biff:notifies users of new c.q. yet unread e-mail
513/TCPLogin
513/UDPWho
514/TCPrsh protocol - used to execute non-interactive commandline commands on a remote system and see the screen return
514/UDPsyslog protocol - used for system logging
515/TCPLine Printer Daemon protocol - used in LPD printer servers
517/UDPTalk
518/UDPNTalk
520/TCPefs
520/UDPRouting - RIP
513/UDPRouter
524/TCP,UDPNCP (NetWare Core Protocol) is used for a variety things such as access to primary NetWare server resources, Time Synchronization, etc.
525/UDPTimed, Timeserver
530/TCP,UDPRPC
531/TCP,UDPAOL Instant Messenger, IRC
532/TCPnetnews
533/UDPnetwall, For Emergency Broadcasts
540/TCPUUCP (Unix-to-Unix Copy Protocol)
542/TCP,UDPcommerce (Commerce Applications)
543/TCPklogin, Kerberos login
544/TCPkshell, Kerberos Remote shell
546/TCP,UDPDHCPv6 client
547/TCP,UDPDHCPv6 server
548/TCPAFP(Apple Filing Protocol)
550/UDPnew-rwho, new-who
554/TCP,UDPRTSP (Real Time Streaming Protocol)
556/TCPRemotefs, rfs, rfs_server
560/UDPrmonitor, Remote Monitor
561/UDPmonitor
563/TCP,UDPNNTP protocol over TLS/SSL (NNTPS)
587/TCPemail message submission(SMTP) (RFC 2476)
591/TCPFileMaker 6.0 (and later) Web Sharing (HTTP Alternate, see port 80)
593/TCP,UDPHTTP RPC Ep Map(RPC over HTTP, often used by DCOM services and Microsoft Exchange Server)
604/TCPTUNNEL
631/TCP,UDPIPP,Internet Printing Protocol
636/TCP,UDPLDAP over SSL (encrypted transmission, also known as LDAPS)
639/TCP,UDPMSDP, Multicast Source Discovery Protocol
646/TCPLDP, Label Distribution Protocol
647/TCPDHCP Failover Protocol
648/TCPRRP, Registry Registrar Protocol
652/TCPDTCP, Dynamic Tunnel Configuration Protocol
654/UDPAODV, Ad hoc On-Demand Distance Vector
665/TCPsun-dr, Remote Dynamic Reconfiguration
666/UDP毁灭战士,電腦平台上的一系列第一人称射击游戏。
674/TCPACAP, Application Configuration Access Protocol
691/TCPMS Exchange Routing
692/TCPHyperwave-ISP
694/UDPLinux-HA High availability Heartbeat port
695/TCPIEEE-MMS-SSL
698/UDPOLSR, Optimized Link State Routing
699/TCPAccess Network
700/TCPEPP, Extensible Provisioning Protocol
701/TCPLMP, Link Management Protocol.
702/TCPIRIS over BEEP
706/TCPSILC, Secure Internet Live Conferencing
711/TCPTDP, Tag Distribution Protocol
712/TCPTBRPF, Topology Broadcast based on Reverse-Path Forwarding
720/TCPSMQP, Simple Message Queue Protocol
749/TCP, UDPkerberos-adm, Kerberos administration
750/UDPKerberos version IV
782/TCPConserver serial-console management server
829/TCPCMP (Certificate Management Protocol)
860/TCPiSCSI
873/TCPrsync File synchronisation protocol
901/TCPSamba Web Administration Tool (SWAT)
902VMware Server Console[1]
904VMware Server Alternate (if 902 is in use - ie SUSE linux)
911/TCPNetwork Console on Acid (NCA) - local tty redirection over OpenSSH
981/TCPSofaWare Technologies Remote HTTPS management for firewall devices running embedded Checkpoint Firewall-1 software
989/TCP,UDPFTP Protocol (data) over TLS/SSL
990/TCP,UDPFTP Protocol (control) over TLS/SSL
991/TCP,UDPNAS (Netnews Admin System)
992/TCP,UDPTelnet protocol over TLS/SSL
993/TCPIMAP4 over SSL (encrypted transmission)
995/TCPPOP3 over SSL (encrypted transmission)

4.测试端口的连通性

使用telnet  Destination IP  Port    该方法只能用于TCP端口的测试。