How to Install the RPM Via WHM
Red Hat Package Manager is known as RPM. The cPanel & WHM server comes with…
The Windows ping command checks whether a host responds to an ICMP request. It cannot test a specific TCP or UDP port. To check HTTPS, RDP, email, or a database, use a port-testing tool.
This guide covers PowerShell’s Test-NetConnection, Telnet, Nmap, result interpretation, troubleshooting, and security. The commands are based on Microsoft documentation.
The ping utility uses ICMP and checks network-level response; it does not connect to an application. TCP and UDP ports identify services. Websites commonly use TCP ports 80 and 443, while Remote Desktop commonly uses 3389.
Use this command to test host reachability:
ping example.com
A successful ping does not prove that port 443 is open. A failed ping also does not prove that HTTPS is unavailable because a firewall may block ICMP while allowing TCP traffic. To test a port, use a command that supports TCP or UDP testing.
PowerShell is the best option for most users. Microsoft’s Test-NetConnection cmdlet supports TCP port testing with -Port.
Test-NetConnection -ComputerName example.com -Port 443
Replace the hostname and port with your target. You can also use an IP address:
Test-NetConnection -ComputerName 192.0.2.25 -Port 3389
Look for this line:
TcpTestSucceeded: True
True means the TCP connection succeeded from your computer to the selected host and port. False means that the attempt did not succeed. The output may also show the resolved address, network interface, and source address.
For a simple Boolean result, use:
Test-NetConnection -ComputerName example.com -Port 443 -InformationLevel Quiet
To display more diagnostic information, use -InformationLevel Detailed. The -Port parameter tests TCP, not UDP.
Telnet can make a basic TCP connection, but the Telnet Client may not be installed by default. Enable it through Control Panel → Programs → Turn Windows features on or off → Telnet Client → OK.
Then open Command Prompt and run:
telnet example.com 443
The syntax is:
telnet HOST PORT
The port is optional; without one, Telnet uses TCP port 23. A successful connection may leave the window blank, while a failure displays an error. Telnet is not encrypted.
Nmap is a separate scanning tool for authorized diagnostics. After installing it from the official Nmap download page, check a port with:
nmap -p 443 example.com
Nmap can help identify open, closed, or filtered ports, but do not scan systems without permission.
For example:
Test-NetConnection -ComputerName 192.0.2.25 -Port 443
Port checks are useful for websites, RDP, email, databases, and firewall changes. A successful test confirms network reachability only; it does not replace application or login testing.
If the test fails, confirm the hostname, IP address, port number, and protocol. Then check whether the destination service is running and listening. Review Windows Defender Firewall, cloud security groups, VPN rules, and network access lists.
On the destination Windows server, an administrator can view listening TCP ports with:
Get-NetTCPConnection -State Listen
To check one port:
Get-NetTCPConnection -LocalPort 443 -State Listen
If nothing is listening, opening a firewall rule will not fix the problem. Start or reconfigure the service, then test again.
Only test systems you own or are authorized to assess. Do not open unnecessary ports just to make a test succeed; restrict administrative services and remove unused listeners.
Telnet is unencrypted and should be used only for a basic connectivity check. PowerShell is generally the safer and clearer choice for a single TCP port test.
1. Can you ping a specific port using Windows ping?
No. ping tests ICMP host reachability. Use Test-NetConnection, Telnet, or Nmap for port testing.
2. How do I check port 80?
Run:
Test-NetConnection -ComputerName example.com -Port 80
A successful result shows TcpTestSucceeded: True.
3. Does Test-NetConnection test UDP?
No. Its -Port parameter tests TCP. UDP requires a protocol-specific tool or diagnostic method.
4. Why does Test-NetConnection return False?
The service may be stopped, the port may be wrong, DNS may be incorrect, or a firewall may block the connection.
5. What does a timeout mean?
A timeout often means that a firewall or network device is silently dropping traffic, although the host or route may also be unavailable.
6. How do I enable Telnet?
Open Control Panel → Programs → Turn Windows features on or off, select Telnet Client, and choose OK.
7. What is the best Windows port-testing method?
Use PowerShell’s Test-NetConnection for most single TCP port checks. It is built into Windows and gives a clear success value.
The Windows ping command cannot test a specific port because it uses ICMP. Use PowerShell for the simplest check:
Test-NetConnection -ComputerName example.com -Port 443
Check for TcpTestSucceeded: True. Use Telnet for a basic TCP test and Nmap for broader authorized diagnostics. Always compare the result with the service status, firewall rules, DNS configuration, and network path.
Read the full guide: How to Locate and Edit Your Hosts File in Windows 10
Explore more hosting insights, tips and industry updates.
Red Hat Package Manager is known as RPM. The cPanel & WHM server comes with…
This article aims to assist you with updating the SSL Ciphers for the Apache Webserver…
You will find in this article, how to Install an SSL Certificate on your cPanel…