Loading ...
Sorry, an error occurred while loading the content.

problem getting client ip when running HTTP::Daemon

Expand Messages
  • Sylvain Trias
    Hi, I d like to get the ip connection from the clients using my functions. I tried (as seen in message 2090) something like: sub peerAddr { print pa:
    Message 1 of 1 , May 17 5:57 AM
    • 0 Attachment
      Hi, I'd like to get the ip connection from the clients using my
      functions. I tried (as seen in message 2090) something like:

      sub peerAddr {
      print "pa: ".$daemon->peeraddr()." ph:".$daemon->peerhost()."sa:".$daemon->sockaddr()."\n";
      return $daemon->peeraddr();
      }

      But the answer is always empty...
      What am I doing wrong ?
    Your message has been successfully submitted and would be delivered to recipients shortly.