Checking ports are open and responding

This guide shows basic netstat and nc command usage.

Check established TCP connections to your server by typing netstat -t or netstat -tn:

netstat-tcp.png

Check open ports on your Linux server:

netstat-listen.png

Connect to open port by using netcat (eg. port 80, HTTP server):

netcat-check.png