2012-03-14 17 views

答えて

1

これを試しましたか?

OperationContext context = OperationContext.Current; 

MessageProperties prop = context.IncomingMessageProperties; 

RemoteEndpointMessageProperty endpoint = prop[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty; 

string ip = endpoint.Address; 
+0

を使用しています。ヌルは 'endpoint'をチェックしてください。 –

+0

私はこれを試しましたが、 ":: 1"としてendpoint.Addressを取得します –

+0

あなたのサービスはローカルホストにありますか? – Mentezza

関連する問題