Re: Client IP
Re: Client IP
- Subject: Re: Client IP
- From: Kaj Hejer <email@hidden>
- Date: Mon, 17 Jan 2005 13:43:24 +0100
On 17. jan 2005, at 12.52, John Andersson wrote:
Hi! This must have been answered earlier, but I couldn't find anything
in the archives..
How do I get the client IP from a WOComponent? (from WORequest?)
I need it for logging.
public static String getClientname(WORequest request) {
return request.headerForKey("x-webobjects-remote-host");
}
public static String getClientAddress(WORequest request) {
return request.headerForKey("x-webobjects-remote-addr");
}
Does not when using portnumber in url (DirectConnect).
-Kaj :)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden