| Code Sample |
| $ netstat -at Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:bootpc *:* LISTEN tcp 0 0 *:swat *:* LISTEN tcp 0 0 *:time *:* LISTEN tcp 0 0 *:sane *:* LISTEN tcp 0 0 *:discard *:* LISTEN tcp 0 0 *:vboxd *:* LISTEN tcp 0 0 *:daytime *:* LISTEN tcp 0 0 *:ipp *:* LISTEN |
| Code Sample |
| $ telnet localhost 6566 Trying 127.0.0.1... Connected to box. Escape character is '^]'. Connection closed by foreign host. |
| Code Sample |
| c: telnet \192.168.1.100 6566 ...could not open connection to the host, on port 6566: Connect failed |