(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. _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
