Method to detect whether ip and port are connectable

Method to detect whether ip and port are connectable

Windows cmd

telnet

format:

telnet ip port

case:

telnet 191.1.1.1 8080

Telnet cannot add http://

Telnet does not support domain names

The default port for telnet is 23

The telnet connection IP and port are spaces " " instead of colons ":"

If the connection cannot be made, a prompt will appear saying that the connection failed. Otherwise, if a large blank space and an inoperable interface appear in cmd, it indicates that the connection is successful.

ping

format:

ping ip or domain:port

case:

ping 191.1.1.1:8080

Cannot add http:// to ping

Ping supports domain names

The default ping port is 80

The ping connection IP and port are colons:

If the connection is not possible, it will prompt that the connection failed, otherwise it will prompt how many bytes are sent and received, for a total of four rounds of sending and receiving.

The above method of detecting whether the IP and port are connectable is all I want to share with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

You may also be interested in:
  • Three ways to check whether a port is open in a remote Linux system
  • Summary of Linux methods for detecting whether a remote port is open
  • Interpret the network connection information displayed by the ip command under Linux

<<:  Vue Element front-end application development preparation for the development environment

>>:  Usage and performance optimization techniques of aggregate function count in MySQL

Recommend

The correct way to use Homebrew in Linux

Many people use Linux Homebrew. Here are three ti...

A brief discussion on the differences between FTP, FTPS and SFTP

Table of contents Introduction to FTP, FTPS and S...

MySQL database transaction example tutorial

Table of contents 1. What is a transaction? 2. Th...

Steps for restoring a single MySQL table

When I was taking a break, a phone call completel...

Nginx monitoring issues under Linux

nginx installation Ensure that the virtual machin...

Vue globally introduces scss (mixin)

Table of contents 1. mixin.scss 2. Single file us...

Detailed explanation of the use of grid properties in CSS

Grid layout Attributes added to the parent elemen...

JavaScript canvas text clock

This article example shares the specific code of ...

How to enhance Linux and Unix server security

Network security is a very important topic, and t...

7 Ways to Write a Vue v-for Loop

Table of contents 1. Always use key in v-for loop...

Detailed explanation of HTML programming tags and document structure

The purpose of using HTML to mark up content is t...

Writing a web calculator using javascript

This article mainly records the effect of using j...

vue+el-upload realizes dynamic upload of multiple files

vue+el-upload multiple files dynamic upload, for ...

Detailed explanation of three commonly used web effects in JavaScript

Table of contents 1 element offset series 1.1 Off...

How to create a view in MySQL

Basic syntax You can create a view using the CREA...