How can I test an outbound connection to an IP address as well as a specific port?

前端 未结 6 1531
被撕碎了的回忆
被撕碎了的回忆 2020-12-24 03:15

OK, we all know how to use PING to test connectivity to an IP address. What I need to do is something similar but test if my outbound request to a given IP Address as well a

6条回答
  •  执念已碎
    2020-12-24 04:17

    If you're testing TCP/IP, a cheap way to test remote addr/port is to telnet to it and see if it connects. For protocols like HTTP (port 80), you can even type HTTP commands and get HTTP responses.

    eg

    Command IP          Port
    Telnet  192.168.1.1 80
    

提交回复
热议问题