CodePudding user response:
NetstatThis command can add some parameters:
- n shows the IP address and port number,
-s shows each protocol connection state,
- a displays all connections and listening ports, (service all connections are often don't show)
- e shows too network connection state, best and share, -s
-p PROTO according to specific protocol connection state,
Display:
Proto Local Address Foreign Address State
80 ESTABLISHED TCP 192.168.14.246:1148 61.152.160.154:
80 ESTABLISHED TCP 192.168.14.246:1180 222.137.116.47:
80 ESTABLISHED TCP 192.168.14.246:1181 222.137.116.47:
80 ESTABLISHED TCP 192.168.14.246:1182 159.226.202.59:
TIME_WAIT 207.46.198.60 TCP 192.168.14.246:1183:80
CodePudding user response:
Then again, you know communication protocol? If you don't know communication protocols, knowing it is also useless connection portEven with sniffer caught, analysis the agreement?
CodePudding user response:
You this is used to check the service side, I am now want to know what a client wants to connect the target host, port, and then to write to the server, now only exe client, so I don't know the port number, in the struggle