Syntax
netstat()
Description
The netstat() function returns an array containing arrays of the current connections to/from the network. The data is similar to the output from the command-line netstat application.
Example
include("net") foreach Entry in netstat() { println(Entry) } ["tcp", "127.0.0.1:6010", "0.0.0.0:*", "LISTEN"] ["tcp", "192.168.0.136:25", "0.0.0.0:*", "LISTEN"] ["tcp", "127.0.0.1:631", "0.0.0.0:*", "LISTEN"] ["tcp", "0.0.0.0:22", "0.0.0.0:*", "LISTEN"] ["tcp", "192.168.0.136:53974", "192.168.0.240:22", "ESTABLISHED"] ["tcp", "192.168.0.136:22", "192.168.0.240:57496", "ESTABLISHED"] ["tcp6", "::1:631", ":::*", "LISTEN"] ["tcp6", ":::7890", ":::*", "LISTEN"] ["tcp6", "::1:6010", ":::*", "LISTEN"] ["tcp6", ":::22", ":::*", "LISTEN"] ["udp", "0.0.0.0:5353", "0.0.0.0:*", ""] ["udp", "0.0.0.0:54691", "0.0.0.0:*", ""] ["udp6", ":::5353", ":::*", ""] ["udp6", ":::60791", ":::*", ""] ["raw6", ":::58", ":::*", ""]