netcat

netcat can work like a portscanner. If it is the only tool that you have you make do. this is going to scan localhost across all of the ports

nc -zv 127.0.0.1 1-65535