要求是DCOM主动得到的。
不希望是客户端发送的。我是用的Delphi 5.0的 MIDAS 3.0

解决方案 »

  1.   

    把IP封装在ORPC包里,具体见MSDN中don box的一篇文章.
      

  2.   

    Delphi怎么做我不知道,这篇文章是介绍vc中如何得到客户端的IP,而不用客户端显式的发送。
      

  3.   

    如果可以取到客户机的机器名的话,用winsock中的gethostbyname应该可以得到 其IP地址,至于在midas中怎么得到机器名就不清楚了
      

  4.   

    可是dcom 把这些东西都封装在底层了
      

  5.   

    http://www.microsoft.com/msj/defaultframe.asp?page=/msj/0198/activex0198.htm&nav=/msj/0198/newnav.htmQ Is there any way to find out the host address of the caller inside a method? 
    Barbara Box
    Redondo Beach, CA
    A The short answer is no.
    ...把全文通读一下再决定你的对策
      

  6.   

    有时关于Don Box的文章,英文的,看着累呀!
    谢谢!我仔细看看。