WCF获取客户端IP 获取的不正确

我在网上按照这段代码,不知道为什么获取的不正确

        OperationContext context = OperationContext.Current;
        //获取传进的消息属性
        MessageProperties properties = context.IncomingMessageProperties;
        //获取消息发送的远程终结点IP和端口
        RemoteEndpointMessageProperty endpoint = properties[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty;
        Console.WriteLine(string.Format("Hello {0},You are  from {1}:{2}", name, endpoint.Address, endpoint.Port));
        return string.Format("Hello {0},You are  from {1}:{2}", name, endpoint.Address, endpoint.Port);

老是获取的IP是:::1 ,我不明白为啥? 谁能告诉我?

LZ 我也遇到了 请问这是怎么回事呀

这是IP6的本地地址吧?应该是你从本机访问,并且,启用IP6。