On Sat, Mar 23, 2013 at 7:31 AM, N.A. <n...@u01.gate01.com> wrote:

> (2013年03月23日 23:03), Peter Flanigan wrote:
> > On 23/03/13 12:12, N.A. wrote:
> >> I wan to get the  IP address of the interface(network device) which the
> >> request come through.
> >
> > My bad.
> >
> > Use $c->req->uri->host to get the hostname of the server
> >
>
> Sorry, $c->req->uri->host is 'hostname', not a IP.
> I want to get  IPv4 address like '127.0.0.1' even if I access the page
> by 'http://localhost/XXX'
>

Interesting.  What's your use case here?

-- 
Bill Moseley
mose...@hank.org
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to