To see if the host IP specified port is developing a method ~~~ping and Telnet are detailed!

Source: Internet
Author: User

1. Summary:

ICMP and IP protocol belong to the same level (network layer), its message is sealed in the IP message transmission, and the port is the Transport Layer TCP/UDP protocol concept, so ping port is not successful

Ping server was found to be inaccessible today, but it was possible to access the server, so banning ping and port access are two concepts.

Ping impassability, there may be a ban ping, XP can be banned ping, open the firewall on the line

2.ping Detailed:

How do I ping a port? such as Ping 192.168.1.1 80 so, a lot of friends would like to detect whether the specified IP is open port, the following teaches you to detect whether the specified IP port is open

In fact, using the ping command is not correct. The correct approach is to use Telnet, so we'll take a look at the parameters that Ping supports

USAGE: PING [-T] [-A] [-N COUNT] [-L SIZE] [-F] [-I TTL]  [-v TOS]              [-r  count] [-s count] [[-j host-list] | [-k host-list]]               [-w timeout] [-R] [-S srcaddr]  [-4] [-6] target_name    options:      -t              Ping the specified host until  stopped.                      To see statistics and continue - type Control-Break;                       to stop - type control-c.      -a              Resolve addresses to hostnames.       -n count       number of echo requests to  send.      -l size        send  buffer size.      -f              set don ' t fragment flag in packet  (IPv4-only) .      -i TTL         Time To  live.      -v TOS         Type  of service  (ipv4-only) .      -r count        record route for count hops  (ipv4-only) .      -s count        Timestamp for count hops  (ipv4-only) .       -j host-list   Loose source route along host-list  ( ipv4-only) .      -k host-list   strict source route  along host-list  (ipv4-only) .      -w timeout      Timeout in milliseconds to wait for each reply.       -R             Trace  round-trip path  (ipv6-only) .      -S srcaddr      Source address to use  (ipv6-only) .      -4              force using ipv4.      -6              Force using IPv6. 

From the above we can see that there is no ping port this parameter, we need to use Telnet to detect whether the specified IP is open port 3.telnet detailed: telnet probe Specifies whether the specified IP port is open

such as Telnet 192.168.1.1 135 format Telnet IP address port

The following is a detailed description of the parameter, and if the connection is always displayed after the command is entered, it is that the specified IP does not open the port. Otherwise, it is open port.

Telnet [-a][-e escape char][-f log file][-l user][-t term][host [port] ]   -a       attempts to log on automatically. In addition to using the currently logged in user name, the  -l  option is the same.    -e       Skip characters to enter  telnet  client tips.    -f       Client Login name    -l       Specifies the name of the user who is logged on on the remote system.             requires remote system support  TELNET ENVIRON  option.    -t       Specify the terminal type.             supported terminal types are only: vt100, vt52, ansi  and  vtnt.    host     Specifies the host name or  IP  address of the remote computer to which you want to connect.    port     Specify the port number or service name.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.