On Sat, Mar 23, 2013 at 7:31 AM, N.A. <[email protected]> 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 [email protected]
_______________________________________________ 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/
