From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,f2cdb7b7d1c551e7,start X-Google-Attributes: gidf678f,public X-Google-Thread: 111308,f2cdb7b7d1c551e7,start X-Google-Attributes: gid111308,public X-Google-ArrivalTime: 1994-09-08 20:05:55 PST Newsgroups: comp.unix.osf.misc,comp.client-server Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!gatech!swiss.ans.net!newsgate.watson.ibm.com!watnews.watson.ibm.com!bocanews.bocaraton.ibm.com!portal.austin.ibm.com!awdprime.austin.ibm.com!jwade From: jwade@austin.ibm.com (Jim Wade) Subject: Re: DCE: Obtaining IP address Sender: news@austin.ibm.com (News id) Message-ID: Date: Thu, 8 Sep 1994 20:24:47 GMT References: <34nap3$j1l@jupiter.cps.plnin.gmeds.com> Organization: IBM Austin X-Newsreader: TIN [version 1.1 PL8] Followup-To: comp.unix.osf.misc,comp.client-server Xref: nntp.gmd.de comp.unix.osf.misc:1735 comp.client-server:5562 Steve Melchert (smelch01@cps.plnin.gmeds.com) wrote: : 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. : Thanks for any input you can provide. : Stephen Melchert Steve, You can use a combination of rpc_binding_server_from_client and rpc_binding_to_string_binding to get the information according to the documentation. The rpc_binding_server_from_client call only provides a partially bound handle so you will not have an endpoint for the client but you will have the IP address. Hope this helps. Jim -- ------------------------------------------------------------------------------- | Jim Wade, DCE 1.0.3 Tech Lead | Token-ring = jwade@rebel.austin.ibm.com| | T/L 678-3723, Austin, TX | VNET = JWADE@AUSTIN | | 512-838-3723 | Internet = jwade@austin.ibm.com | -------------------------------------------------------------------------------