• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Client IP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Client IP
      • From: John Andersson <email@hidden>
References: 
 >Propagate Primary Key Confusion? (From: Kieran Kelleher <email@hidden>)
 >Re: Propagate Primary Key Confusion? (From: Art Isbell <email@hidden>)
 >How to fix "failed to provide new primary keys for..."? (From: Ken Tozier <email@hidden>)
 >Re: How to fix "failed to provide new primary keys for..."? (From: Johan Henselmans <email@hidden>)
 >Client IP (From: John Andersson <email@hidden>)

  • Prev by Date: Client IP
  • Next by Date: Re: Correct tool-Constellation
  • Previous by thread: Client IP
  • Next by thread: Re: Client IP
  • Index(es):
    • Date
    • Thread