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

'C# > Winform' 카테고리의 다른 글

(WCF) Transaction 전달  (0) 2017.04.13
(WCF) 통신 로그 남기기  (0) 2017.04.13
(WCF) IIS vs WinForm 속도 비교  (0) 2017.04.13
(Entity) Code First 마이그레이션  (0) 2017.04.13
(Entity) Entity Framework 소스 코드  (0) 2017.04.13
Posted by kjun.kr
,