728x90
반응형

OperationContext ctx = OperationContext.Current;
string sessionID = ctx.SessionId;

var context = OperationContext.Current;
var prop = context.IncomingMessageProperties;
var endpoint = prop[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty;

string ipText = endpoint.Address;
Console.WriteLine("★IPADDRESS: " + ipText + ", SESSIONID : " + sessionID);

728x90
반응형

+ Recent posts