怎么判断远程主机是否能连通?如果只是想简单判断一下的话,当然不排除主机不允许ping。
知道的说一声,谢谢。

解决方案 »

  1.   

    ARP(http://www-900.ibm.com/developerworks/cn/linux/l-arp/index.shtml)扫描该IP可知该IP是否在互联网上。
      

  2.   

    ARP协议可以进行网段扫描,只要服务器在同网段内都可以扫描到。
    参考技术文章:http://www-900.ibm.com/developerworks/cn/linux/l-arp/index.shtml
      

  3.   

    其他ARP文章:《利用ARP探测以太网中的活动主机》http://www.xfocus.net/articles/200404/688.html
      

  4.   

    手把手教你玩转ARP包(一)http://blog.csdn.net/superhacker110/archive/2004/11/30/198563.aspx
    手把手教你玩转ARP
    http://www.enet.com.cn/esafe/inforcenter/A20040720326241.html
     手把手教你玩转ARP包
    http://www.csdn.net/Develop/read_article.asp?id=28419
    http://www.csdn.net/develop/article/28/28421.shtm
    http://soft.eesky.com/info/43249.htm
      

  5.   

    可以用,实践判断阿~
    当连接断开时,Close()事件
    那时你可以处理了`
      

  6.   

    Open "C:\log.txt" For Input As #1
        LogTXT = Input(LOF(1), 1)
        Close #1    If InStr(LogTXT, "Reply") <> 0 Then
            MsgBox "连接成功!", vbInformation
        Else
            MsgBox "连接失败!", vbCritical
        End If