Thanks a lot for your answer! There are four days I'm trying to solve this problem and now, in about two minutes, I've received two different answers, both working!!! It's a very amazing thing!!! Thank you very much... I have yet to learn a lot!!!
 
Vincenzo
----- Original Message -----
Sent: Thursday, July 03, 2003 6:09 PM
Subject: RE: Problem with web services

Vincenzo,
 
You can get the IP address of the client in your service by this:
 
    String clientIPAddr = (String) MessageContext.getCurrentContext().getProperty("remoteaddr");
 
Sanjesh
-----Original Message-----
From: Vincenzo Di Stefano [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 10:51 AM
To: [EMAIL PROTECTED]
Subject: Problem with web services

Hi all,
  can anyone help me!?! My problem is conceptually very simple, but "programmingly" not so easy... for my experience. I'll explain my problem!!!
I'm developing a web service... a simple one, just to understand some basical concepts, and I need to know the IP address of the "client" side... better: I have the service on one PC, and from another one I call the service. What I need is the IP address of the second PC (the calling machine), but I'm not succeeding in find any method to discover this address. Has someone of you some answer to my question!?!
 
Thanks in advance
 
Vincenzo


**********************************************************************
This e-mail is the property of Enron Corp. and/or its relevant affiliate and may contain confidential and privileged material for the sole use of the intended recipient (s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender or reply to Enron Corp. at [EMAIL PROTECTED] and delete all copies of the message. This e-mail (and any attachments hereto) are not intended to be an offer (or an acceptance) and do not create or evidence a binding and enforceable contract between Enron Corp. (or any of its affiliates) and the intended recipient or any other party, and may not be relied on by anyone as the basis of a contract by estoppel or otherwise. Thank you.
**********************************************************************

Reply via email to