[
http://issues.apache.org/jira/browse/AXIS2-1610?page=comments#action_12448175 ]
Michael Berkowitz commented on AXIS2-1610:
------------------------------------------
I'm currently using Axis 1.4, and this works under that:
protected String get_client_ip() {
MessageContext context = MessageContext.getCurrentContext();
if (context == null)
client_ip = "127.0.0.1";
else
client_ip = (String)
context.getProperty(org.apache.axis.Constants.MC_REMOTE_ADDR);
return client_ip;
}
If it doesn't work under Axis2, please let me know. That might be cause for
concern.
> Need to get client IP address on server side
> --------------------------------------------
>
> Key: AXIS2-1610
> URL: http://issues.apache.org/jira/browse/AXIS2-1610
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: New Feature
> Reporter: indika priyantha kumara
>
> hi all
> In my application i need to get client IP address on server side. It is need
> to possible this in both of SimpleHttpServer and Axis2 web-app
> distributions. Please can someone do this?
>
> Thanks Lots
> Regards
> Indika
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]