Site Overlay

4. Open Port Inquiry CMD

Open port inquiry CMD

See open ports with CMD

image 5
Open port inquiry CMD – Seeing open ports with CMD

See open Ports in Windows

netstat -a Prints all TCP and UDP connections.
netstat -e Displays statistics of the number of incoming and outgoing packets.
netstat -n Displays all connections in numerical terms.
netstat -o Lists all connections by PID number and application name.
netstat -p Prints the application and PID numbers used by the connections
r.netstat -s Prints statistical data according to the rules.
netstat -r displays the contents of the IP routing table.

Parameters used with this command must have a hyphen (-) at the beginning.

-a : Displays all active connections and the TCP and UDP ports on which the computer is listening.

-b : Displays the names of binaries that create connections or listen on ports. (on Windows XP, Server 2003, and later Windows operating systems (Microsoft Windows 2000 or other non-Windows operating systems)) MAC OS X will report the total traffic on the network when used with the -i parameter of the operating system.

-e : Displays ethernet statistics, such as bytes and number of packets sent. This parameter can be used with the -s parameter.

-f : Displays the domain names of foreign addresses. (only available on Windows Vista and newer operating systems.).

-g : Displays multicast group membership information for IPv4 and IPv6.

-i : Displays network interfaces and their statistics. (Not available under Windows)

-m : Displays STREAMS statistics.

-n : Displays active TCP connections. However, addresses and port numbers are expressed numerically, no naming is made.

-o : Displays information about network timers.

-p Windows and BSD: Protocol: Shows the protocol bindings specified by the protocol. The protocol can be tcp, udp, tcpv6, or udpv6. If this parameter is used in conjunction with -s, the statistics for the protocol are shown.

-p Linux: Shows the sockets that processes use. (It is similar to the -b parameter under Windows.) (You need to be root to use this command)

-P Solaris: Protocol: Shows the protocol connections specified by the protocol. The protocol can be ip, ipv6, icmp, icmpv6, igmp, udp, tcp, or rawip.

-r : Shows the contents of the routing table. (Equivalent to the route print command under Windows)

-s : Displays statistics for each protocol.

-t Linux: Displays only TCP connections.

Interval: Redisplays the selected information at intervals in the duration set in seconds. CTRL+C is used to stop the display feature again. If this parameter is omitted, netstat prints the information selected only once.

-h (unix) /? (windows): Displays help on the command line.

Yours truly..

image 3

Arif Akyüz
Content Producer & Cyber Security Expert

Copyright © 2023 Arif Akyüz. All Rights Reserved. | Catch Vogue by Catch Themes