Since netstat is a cross-platform command, it’s also available in other operating systems like macOS and Linux.
The availability of certain netstat command switches and other netstat commandsyntaxmay differ from operating system to operating system.
SeeHow to Redirect Command Output to a Filefor complete instructions.
Lifewire / Nez Riaz
The only protocol (in theProtocolumn) listed is TCP, which was expected because we didn’t use-a.
TheForeign Addresscolumn lists the FQDN (75.125.212.75didn’t resolve for some reason) along with that port as well.
Finally, theStatecolumn lists the TCP state of that particular connection.
Here’s what the computer displayed:
You probably noticed the newPIDcolumn.
A similar command could be used to filter out the connections with aCLOSE_WAITstate, by replacing the PID withESTABLISHED.
We also want the foreign addresses displayed in FQDN format [-f].
Note the^Cat the bottom, indicating that theCtrl+C abort commandwas used to stop the re-running of the command.
[1] You might have to manually add the PID column to Task Manager.
you’re free to do this by selectingPIDafter right-clicking the column headings in theProcesstab.
FAQ
Runntestat -banand look through the list for the Process Identifier (PID) of iexplore.exe.
This sill show you the proxy port and IP of your system.