0% found this document useful (0 votes)
19 views5 pages

NETSTATHG

Uploaded by

Art Attack
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views5 pages

NETSTATHG

Uploaded by

Art Attack
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

ships with Windows, GUI-based netstat programs are available.

On the Windows platform, this command is available only if the Internet Protocol
(TCP/IP) protocol is installed as a component in the properties of a network adapter in
Network Connections.

On the Windows platform running Remote Desktop Services (formerly Terminal


Services) it will only show connections for ships with Windows, GUI-based netstat
programs are available.

On the Windows platform, this command is available only if the Internet Protocol
(TCP/IP) protocol is installed as a component in the properties of a network adapter in
Network Connections.

On the Windows platform running Remote Desktop Services (formerly Terminal


Services) it will only show connections for Caveats
[edit]
Some versions of netstat lack explicit field delimiters in their printf-generated output,
leading to numeric fields running together and thus corrupting the output data.

Platform specific remarks


[edit]

The ReactOS netstat command

The macOS netstat command


Under Linux, raw data can often be obtained from the /proc/net/dev to work around
the printf output corruption arising in netstat's network interface statistics
summary, netstat -i, until such time as the problem is corrected.[citation needed]
On the Windows platform, netstat information can be retrieved by calling
the GetTcpTable and GetUdpTable functions in the IP Helper API, or IPHLPAPI.DLL.
Information returned includes local and remote IP addresses, local and remote ports,
and (for GetTcpTable) TCP status codes. In addition to the command-line netstat.exe
tool that ships with Windows, GUI-based netstat programs are available.

On the Windows platform, this command is available only if the Internet Protocol
(TCP/IP) protocol is installed as a component in the properties of a network adapter in
Network Connections.

On the Windows platform running Remote Desktop Services (formerly Terminal


Services) it will only show connections for the current user, not for the whole computer.

On macOS, the /System/Library/CoreServices/Applications folder (or


/Applications/Utilities in OS X Mountain Lion and earlier) contains a network GUI utility
called Network Utility, the Netstat tab of which runs the netstat command and displays
its output in the tab.

See also
[edit]

 ss, a Linux utility to investigate sockets from iproute2 meant to replace netstat
 lsof -i
 bmon
References
[edit]

1. ^ "IBM Systems Information Center". ibm.com. 8 May 2007.


2. ^ "net-tools". linuxfoundation.org. Archived from the original on 2016-06-11.
Retrieved 2014-08-02.
3. ^ "Arch Linux". archlinux.org. 8 June 2011.
4. ^ "Deprecated Linux networking commands and their replacements". Doug Vitale Tech
Blog. 21 December 2011.
5. ^ "netstat man page (notes section)". Retrieved 2 August 2014. This program is
obsolete. Replacement for netstat is ss. Replacement for netstat -r is ip route.
Replacement for netstat -i is ip -s link. Replacement for netstat -g is ip maddr.
6. ^ "The netstat command can now display process IDs that correspond to active TCP or
UDP connections in Windows 2000". Archived from the original on 24 August 2007.

Further reading
[edit]

 Dyson, Peter (1995). Mastering OS/2 Warp. Sybex. ISBN 978-0782116632.


 Stanek, William R. (2008). Windows Command-Line Administrator's Pocket
Consultant, 2nd Edition. Microsoft Press. ISBN 978-0735622623.
External links
[edit]

Wikibooks has a book on the topic of: Guide to Windows Commands

 netstat(8) – Linux Programmer's Manual – Administration and Privileged


Commands
 netstat(1) – FreeBSD General Commands Manual
 netstat(8) – Solaris 11.4 System Administration Commands Reference Manual
 netstat(1) – Inferno General commands Man

Caveats
[edit]
Some versions of netstat lack explicit field delimiters in their printf-generated output,
leading to numeric fields running together and thus corrupting the output data.

Platform specific remarks


[edit]

The ReactOS netstat command

The macOS netstat command


Under Linux, raw data can often be obtained from the /proc/net/dev to work around
the printf output corruption arising in netstat's network interface statistics
summary, netstat -i, until such time as the problem is corrected.[citation needed]
On the Windows platform, netstat information can be retrieved by calling
the GetTcpTable and GetUdpTable functions in the IP Helper API, or IPHLPAPI.DLL.
Information returned includes local and remote IP addresses, local and remote ports,
and (for GetTcpTable) TCP status codes. In addition to the command-line netstat.exe
tool that ships with Windows, GUI-based netstat programs are available.

On the Windows platform, this command is available only if the Internet Protocol
(TCP/IP) protocol is installed as a component in the properties of a network adapter in
Network Connections.

On the Windows platform running Remote Desktop Services (formerly Terminal


Services) it will only show connections for the current user, not for the whole computer.

On macOS, the /System/Library/CoreServices/Applications folder (or


/Applications/Utilities in OS X Mountain Lion and earlier) contains a network GUI utility
called Network Utility, the Netstat tab of which runs the netstat command and displays
its output in the tab.

See also
[edit]

 ss, a Linux utility to investigate sockets from iproute2 meant to replace netstat
 lsof -i
 bmon
References
[edit]

1. ^ "IBM Systems Information Center". ibm.com. 8 May 2007.


2. ^ "net-tools". linuxfoundation.org. Archived from the original on 2016-06-11.
Retrieved 2014-08-02.
3. ^ "Arch Linux". archlinux.org. 8 June 2011.
4. ^ "Deprecated Linux networking commands and their replacements". Doug Vitale Tech
Blog. 21 December 2011.
5. ^ "netstat man page (notes section)". Retrieved 2 August 2014. This program is
obsolete. Replacement for netstat is ss. Replacement for netstat -r is ip route.
Replacement for netstat -i is ip -s link. Replacement for netstat -g is ip maddr.
6. ^ "The netstat command can now display process IDs that correspond to active TCP or
UDP connections in Windows 2000". Archived from the original on 24 August 2007.

Further reading
[edit]

 Dyson, Peter (1995). Mastering OS/2 Warp. Sybex. ISBN 978-0782116632.


 Stanek, William R. (2008). Windows Command-Line Administrator's Pocket
Consultant, 2nd Edition. Microsoft Press. ISBN 978-0735622623.
External links
[edit]

Wikibooks has a book on the topic of: Guide to Windows Commands

 netstat(8) – Linux Programmer's Manual – Administration and Privileged


Commands
 netstat(1) – FreeBSD General Commands Manual
 netstat(8) – Solaris 11.4 System Administration Commands Reference Manual
 netstat(1) – Inferno General commands Man

You might also like