axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Ferreiro (ホセ フェレイロ) <jose.ferre...@a3.epfl.ch>
Subject Re: Remote IP Address from a .NET WCF Client to My Web Service
Date Thu, 11 Mar 2010 22:16:25 GMT
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
<Michael_Doughty@bmc.com>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:sselvia@datamentors.com]
> Sent: Thursday, March 11, 2010 3:40 PM
> To: axis-user@ws.apache.org
> 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: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>


-- 
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

Mime
View raw message