banner



How To Ping Ip Address With Port Number In Windows

A ping is a tool and command used to troubleshoot network and arrangement-related problems. The ping control normally uses the ICMP protocol and make checks if the remote system is upward or downwards without a TCP or UDP. The ping port is a term used to cheque a remote port which can be TCP or UDP if it is open and attainable. In that location are dissimilar tools that tin exist used to ping a TCP or UDP port. Telnet, nmap, putty, netcat,psping are some of them.

Why Ping A Specific Port?

Pinging a specific port is used by different users and administrators to check remote service. A Linux Administrator, Windows Administrator, Network Administrator, Application Developer, Database Administrator generally ping specific ports to identify and solve problems. Beneath we will list some of the almost popular reasons why ping a specific port.

  • The application can not connect database service.
  • If the firewall has configured properly to allow or deny specific ports.
  • Check if the remote SNMP service is running properly.
  • Earlier attacking the remote port if the port is up and responding properly.

Ping Specific Port with telnet Command

The most popular and basic tool to ping a remote port is the telnet command. Telnet is a tool and protocol created to connect remote systems via the command line. Telnet work from the command line and provides elementary access to the remote telnet server. Telnet command uses the TCP protocol and first tries to connect remote port which is very useful to check remote port.

By default, telnet is not installed for both Linux and Windows systems. In Linux systems like Ubuntu, Debian, Mint, Kali you can install the telnet command like below.

          $ sudo apt install telnet        

For Windows operating arrangement the telnet client is provided via the Windows Features but not enabled past default. So you should turn on the telnet customer feature. Take a wait at the following tutorial virtually how to install a telnet client in Windows operating systems.

Alternatively, yous can use 3rd party tools like Putty for telnet control only it is non practical as expected. Syntax of the telnet command to ping the remote port is similar below. The telnet command only uses the TCP protocol which is the most popular transmission protocol. Then only TCP ports can be pinged with the telnet command which can non exist used for the UDP ports.

          telnet IP PORT telnet DOMAIN PORT        
  • IP or DOMAIN is used to specify the remote arrangement.
  • PORT is the remote system port number which is a number from 9 to 65000.

Allow's ping the remote HTTP port with the telnet command by providing the port number as 80. We will ping the google.com TCP port number fourscore like below.

          $ telnet google.com 80                  

The output will be like below where the telnet will try to connect remote system port number 80 and when the connection is established e will see the bulletin "Connected to google.com."

                      Trying 172.217.xviii.110... Connected to google.com. Escape character is '^]'.  get / HTTP/1.0 400 Bad Asking Content-Type: text/html; charset=UTF-8 Referrer-Policy: no-referrer Content-Length: 1555 Date: Thu, 12 Nov 2020 01:57:34 GMT  <!DOCTYPE html> <html lang=en>   <meta charset=utf-8> ...        
Ping Specified Port with telnet

Alternatively, we tin can try to ping a remote port with the IP accost. We will only change the domain name with the IP accost below.

          $ telnet 172.217.18.110 80        

We take made a ping port example with a successful result just what volition exist the output if the ping port does not piece of work. In the following instance, nosotros volition ping port number 89 which is closed and will not reply to the ping request.

          $ telnet google.com 89 Trying 172.217.18.110... Trying 2a00:1450:4001:809::200e... telnet: Unable to connect to remote host: Network is unreachable                  

The output will be like below where the "Trying 172.217.18.110…" line will be shown for timeout so the "telnet: Unable to connect to remote host: Network is unreachable" message will be displayed.

Ping Specified Port with telnet

Ping Specific Port with nc (netcat) Command

The nc or with its well-known name netcat is a tool used by security professionals for remote connectivity and management. Like to the telnet command nc command tin be used to ping specific port numbers for a remote system.

The nc command is provided past the Linux distributions similar Ubuntu, Debian, Mint, Kali and tin can be installed like below.

          $ sudo apt install netcat        

For Windows operating systems the nc command and executable can be downloaded from alternative locations where one of them is https://github.com/diegocr/netcat .

The syntax of the nc command is very similar to the telnet command. But the difference is -5 and -z parameters should be specified. The -v parameter is used for verbose output in order to run into the log or status information like connected or not connected. The -z parameter is used for browse fashion which will bank check or browse the specified remote port.

          nc -vz DOMAIN PORT nc -vz IP PORT        
  • The DOMAIN is the remote system domain name.
  • The IP is the remote system IP address.
  • The PORT is the remote system port number we want to ping.

Let'south brand a ping to the HTTP port of google.com with the following nc control.

          $ nc -vz goole.com eighty Connexion to goole.com 80 port [tcp/http] succeeded!        

We tin run across that the connection is succeeded which means the remote port number 80 responds to ping requests. Nosotros tin can also use the IP address for the remote system.

          $ nc -vz 172.217.18.110 lxxx                  

In the post-obit example, we will ping the google.com domain name pot number 89.

          $ nc -vz goole.com 89 nc: connect to goole.com port 89 (tcp) failed: Connection refused                  

Equally nosotros can see from the upshot we will go the "Connexion refused" message which means the remote port does not respond to ping.

Ping Specific Port with nmap

The nmap is a security tool used to scan remote systems ports and services. The nmap tin can be besides used to ping a specific port. Nmap can be installed for the Linux distributions similar Ubuntu, Debian, Mint, Kali like below.

          $ sudo apt install nmap        

For Windows operating systems use the official nmap site Windows download department like beneath.

https://nmap.org/download.html

The syntax of the nmap command for the port ping is similar beneath.

          nmap -p PORT_RANGE TARGET        
  • PORT_RANGE is the remote port number or protocol name. The PORT_RANGE tin be too a range of port numbers too.
  • TARGET is a domain proper noun or IP address. Likewise the target tin exist an IP range as well which includes multiple sequencial IP addresses.

Let's make an example with the nmap to ping remote port. Nosotros will provide the port number with the -p parameter which will be 80 and the remote system is google.com.

          $ nmap -p fourscore google.com        

The nmap is the fastest tool to ping a specified remote port. The command will exist executed in 2 seconds and detailed output about the remote port will exist provided like below. The line "eighty/tcp open http" just expresses that the remote port number 80 responds to pings.

Starting Nmap 7.fourscore ( https://nmap.org ) at 2020-11-11 18:27 PST Nmap scan report for google.com (172.217.18.110) Host is up (0.036s latency). Other addresses for google.com (not scanned): 2a00:1450:4001:809::200e rDNS tape for 172.217.18.110: zrh04s05-in-f110.1e100.net PORT STATE SERVICE 80/tcp open http Nmap done: 1 IP address (one host upwardly) scanned in 0.28 seconds
Ping Specified Port with nmap

Alternatively, nosotros can specify the IP address of the remote system we desire to ping port.

          $ nmap -p 80 172.217.18.110        

Equally stated previously the nmap command can ping multiple ports and IP addresses with a single command. Other tools like nc, telnet can not ping multiple ports with a single command. In the following example, we volition ping port numbers between 80 and ninety.

          $ nmap -p 80-90 google.com        

The output will be like below where the open ports will be listed with the State open up.

Starting Nmap 7.80 ( https://nmap.org ) at 2020-11-11 18:32 PST Nmap scan report for google.com (172.217.18.110) Host is upward (0.039s latency). Other addresses for google.com (non scanned): 2a00:1450:4001:809::200e rDNS record for 172.217.eighteen.110: fra16s42-in-f14.1e100.net PORT STATE SERVICE 80/tcp open http 81/tcp filtered hosts2-ns 82/tcp filtered xfer 83/tcp filtered mit-ml-dev 84/tcp filtered ctf 85/tcp filtered mit-ml-dev 86/tcp filtered mfcobol 87/tcp filtered priv-term-fifty 88/tcp filtered kerberos-sec 89/tcp filtered su-mit-tg xc/tcp filtered dnsix
Ping Multiple Specified Ports with nmap

Ping Specific Port with Test-Connection In PowerShell

The Windows operating organization provides the strong command-line interface named PowerShell with its recent versions. PowerShell provides a lot of useful commands like Test-NetConnection . The Test-NetConnection can be used to ping specified remote ports easily and provides detailed information. The Test-NetConnection is the preferred tool over the telnet command for Windows systems. The Examination-NetConnection command is by default with PowerShell and Windows so there is no demand for an extra installation process.

The syntax of the Test-NetConnection command is like below.

          Test-NetConnection TARGET -p PORT        
  • TARGET is an IP accost or domain name to port ping.
  • PORT is the remote system port number.

We will utilise the Test-NetConnection command to test google.com port number 80.

          PS> Test-NetConnection google.com -p 80        

The output of the ping remote port with the Test-NetConnection command will exist like below. Nosotros tin meet that remote arrangement ComputerName, RemoteAddress, RemotePort, InterfaceAlias, SourceAddress, TcpTectSucceeded data is provided.

ComputerName : google.com RemoteAddress : 172.217.eighteen.110 RemotePort : 80 InterfaceAlias : Ethernet0 SourceAddress : 192.168.142.130 TcpTestSucceeded : True
Ping Port with PowerShell Examination-NetConnection

Let'southward brand some other test for port number 89 for google.com.

          PS> Test-NetConnection google.com -p 80        

The output is similar below which means the ping port is failed. For failed ping port operations actress information similar PingRelyDetails (RTT), TcpTestSucceeded is provided.

WARNING: TCP connect to (172.217.18.110 : 89) failed  ComputerName : google.com RemoteAddress : 172.217.xviii.110 RemotePort : 89 InterfaceAlias : Ethernet0 SourceAddress : 192.168.142.130 PingSucceeded : True PingReplyDetails (RTT) : 46 ms TcpTestSucceeded : Fake
Ping Port with PowerShell Test-NetConnection

Ping Port with PaPing Tool

The PaPing tool is a 3rd party tool created to ping remote specified port. The PaPing projection is open source and located in Google Code.

http://lawmaking.google.com/p/paping

The paping.exe is used to ping remote port. The port number is proıvided with the -p pick and the number of the ping packets are sent with the -c command. In the following example, we ping the wisetut.com port number fourscore for 5 times.

          > paping.exe wisetut.com -p 80 -c 5        

Ping Port with curl Command

The roll command is created to download remote resource over the network by using the FTP, HTTP, HTTPS, and similar protocols. It can be also used to brand a simple port checks which can exist also called a ping port. The following syntax is used to ping port for the specified IP address or hostname.

          curl HOST:PORT        

In the post-obit example, we ping the remote system with IP address 192.168.136.136 for port number lxxx.

          $ whorl 192.168.136.136:80        

If the remote port is open some response similar a alarm, mistake, etc is returned by the remote port service.

Ping Port with curl Command

Ping Port with psping Command

Windows Sysinternals is used to debug, troubleshoot the Windows operating system. The psping is a Windows Sysinternals tool that can be used to ping a port. The syntax of the psping tool is like below.

          psping HOST:PORT        
          > psping 192.168.136.136:80        

Source: https://wisetut.com/how-to-ping-specific-port/

Posted by: harringtongraints.blogspot.com

0 Response to "How To Ping Ip Address With Port Number In Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel