Hey there! Let's give a try.
Instead of calling 127.0.0.1 specify the DNS of your machine (or computer name)... Although I am not having the same problem as you, I also faced a similar problem and performing this change I was able to get the right IP address of the client. Bonne nuit! On Thu, Mar 11, 2010 at 10:44 PM, Doughty, Michael <[email protected]>wrote: > Looks like you're .NET WCF Client is using IPv6. 0:0:0:0:0:0:0:1 is the > loopback IP for IPv6, just as 127.0.0.1 is the loopback IP for IPv4. > > -----Original Message----- > From: v2cg4ss [mailto:[email protected]] > Sent: Thursday, March 11, 2010 3:40 PM > To: [email protected] > Subject: Remote IP Address from a .NET WCF Client to My Web Service > > > MessageContext msgCtx = MessageContext.getCurrentMessageContext(); > if (msgCtx != null) > { > System.out.println(msgCtx.getProperty(MessageContext.REMOTE_ADDR)); > } > > Works great for a Java client: 127.0.0.1 But for a .NET WCF client I get > 0:0:0:0:0:0:0:1 > > Anyone have any IDEAS???? > -- > View this message in context: > http://old.nabble.com/Remote-IP-Address-from-a-.NET-WCF-Client-to-My-Web-Service-tp27870259p27870259.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- José Ferreiro Systems Analysis and Design Specialist MSc in Communication Systems, EPFL. "Think little goals and expect little achievements. Think big goals and win big success." David Joseph Schwartz
