- telnet
- Netcat (nc)
- Network Mapper (nmap)
install
for CentOS/Fedora
yum -y install telnet
for Ubuntu
sudo apt install telnet
to ping a port
telnet <address> <port_number>
telent google.com 443
sudo apt install netcat
nc -vz <address> <port_number>
# For CentOS/RHEL Linux
sudo yum install nmap
# For Ubuntu or Debian Linux
sudo apt install nmap
nmap -p <port_number> <address>
nmap -p 80 google.com
nmap -p <port_range> <address>
nmap -p 88-93 google.com
- Telnet
- PowerShell
Before using telnet, make sure it is activated:
- Open the Control Panel.
- Click Programs, and then Programs and Features.
- Select Turn Windows features on or off.
- Find Telnet Client and check the box. Click OK.
telnet <address> <port_number>
Test-NetConnection <address> -p <port_number>
Test-NetConnection google.com -p 80