[Catalyst] How to get IP address of the interface which the
request come through
N.A.
n-a at u01.gate01.com
Sat Mar 23 14:31:57 GMT 2013
(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'
N.A.
More information about the Catalyst
mailing list