From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,f2cdb7b7d1c551e7 X-Google-Attributes: gidf678f,public X-Google-Thread: 111308,f2cdb7b7d1c551e7 X-Google-Attributes: gid111308,public X-Google-ArrivalTime: 1994-09-08 20:29:53 PST Path: nntp.gmd.de!xlink.net!zib-berlin.de!uni-paderborn.de!urmel.informatik.rwth-aachen.de!news.dfn.de!Germany.EU.net!EU.net!uunet!MathWorks.Com!news.kei.com!ddsw1!redstone.interpath.net!tophat.mauney.com!mauney From: mauney@tophat (Jon Mauney) Newsgroups: comp.unix.osf.misc,comp.client-server Subject: Re: DCE: Obtaining IP address Date: 8 Sep 94 17:54:18 GMT Organization: Interpath -- Providing Internet access to North Carolina Message-ID: References: <34nap3$j1l@jupiter.cps.plnin.gmeds.com> NNTP-Posting-Host: jtec.mauney.com Keywords: DCE IP RPC context handle Xref: nntp.gmd.de comp.unix.osf.misc:1736 comp.client-server:5563 smelch01@cps.plnin.gmeds.com (Steve Melchert) writes: >I would like to capture the IP address of a calling client from the >server layer. I want this information so that I can store certain >information related to specific IP's. Is it part of the context >handle? Can it be captured? >I have been told that there is no API to directly obtain this data. >Does anyone have any idea how to capture the IP address from the server? >Would like to avoid a lot of messy code if possible, as my product is >to be cross-platform portable. The Client's address is part of the binding handle delivered to the server (assuming an explicit handle is delivered to the server). This handle can be converted to a string binding using rpc_binding_to_string_binding and the string binding deconstructed using rpc_string_binding_parse Notice, though, that in the general case this is not guaranteed to be an IP address, since the transport may have been something other than an IP protocol. Portable code should take this into account. -- Jon Mauney jon@mauney.com Mauney Computer Consulting (919) 828-8053 Raleigh NC "Have TGT, will travel."