Test If a Port Is Reachable on Linux

Tries a TCP connection and reports whether it opened, was refused or timed out. Fill in the details below to get the exact command.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Test If a Port Is Reachable

nc -zv -w 5 example.com 443

Tries a TCP connection and reports whether it opened, was refused or timed out.

Linux Command Generator

The command

Commandnc -zv -w 5 example.com 443
CategoryNetwork
Works OnUbuntu, Debian, AlmaLinux, Rocky Linux

Tries a TCP connection and reports whether it opened, was refused or timed out.

Questions

How do I test if a port is reachable on Linux?
Run: nc -zv -w 5 example.com 443

Run VMs for other people?

Frabs stops spam, scans and floods leaving your customers' VMs, before the abuse report lands.