Method to detect whether ip and port are connectable
- 2021-06-28 14:51:49
- OfStack
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
telnet Connections ip and port are spaces and not colons:
If the connection is not available, it will be prompted to fail; otherwise, if cmd has a large blank and inoperable interface, the connection will be successful.
ping
format:
ping ip perhaps domain:port
case:
ping 191.1.1.1:8080
ping cannot be added with http://
ping Supports Domain Names
ping default port is 80
ping Connections ip and port are colons":"
If the connection is not available, it will be prompted for failure, otherwise it will be prompted for how many bytes to send and receive, a total of 4 rounds of send and receive.