Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

Identifying who is accessing a remote object

I have a remote object that inherits from MarshalByRefObject.  Is there a way of identifying who is actually accessing this object?  I am using a TCP chanel so would like to know the remote IP address of who instantiated the object.

Is this possible?

Wednesday, February 9, 2005

I'm not aware of any (reliable) means to do what you want with TCP channel.  If you use HTTP channel, hosted in IIS, then you can enable standard IIS authentication (basic, digest or whatever you want) and then in your code you just look at Thread.CurrentPrincipal to see who the user is.

John Rusk
Sunday, February 13, 2005

*  Recent Topics

*  Fog Creek Home