Netcat

Open ports

Source

TCP:

sudo nc -l <portnumber>

UDP:

sudo nc -lu <portnumber>

Portscan

nc -zu <ip> <port-range>