检查IP和端口是否通信

检查IP地址

ping [ip]

检查端口

  1. telnet [ip] [port]
  2. nc -v [ip] [port]