RE: [Catalyst] How to get IP address of the interface which the request come through

2013-03-25 Thread Craig Chant
I use $c-req-address -Original Message- From: N.A. [mailto:n...@u01.gate01.com] Sent: 23 March 2013 12:13 To: The elegant MVC web framework Subject: [Catalyst] How to get IP address of the interface which the request come through I wan to get the IP address of the interface(network

RE: [Catalyst] How to get IP address of the interface which the request come through

2013-03-25 Thread Craig Chant
ok, perhaps I should read all emails before replying :-) Morning all ,welcome to the week! -Original Message- From: Peter Flanigan [mailto:p...@roxsoft.co.uk] Sent: 23 March 2013 14:03 To: The elegant MVC web framework Subject: Re: [Catalyst] How to get IP address of the interface which

[Catalyst] How to get IP address of the interface which the request come through

2013-03-23 Thread N.A.
I wan to get the IP address of the interface(network device) which the request come through. This information can be easily obtained by $c-engine-env-{ SERVER_ADDR } with FCGI setting both on nginx/lighttpd web servers. However SERVER_ADDR is not defined in Catalyst Test Server. Of course the

Re: [Catalyst] How to get IP address of the interface which the request come through

2013-03-23 Thread Peter Flanigan
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. $c-req-address -- Regards ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] How to get IP address of the interface which the request come through

2013-03-23 Thread Peter Flanigan
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 -- Regards ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] How to get IP address of the interface which the request come through

2013-03-23 Thread N.A.
(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

Re: [Catalyst] How to get IP address of the interface which the request come through

2013-03-23 Thread Bill Moseley
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

Re: [Catalyst] How to get IP address of the interface which the request come through

2013-03-23 Thread N.A.
Interesting. What's your use case here? Not a quite common use case. I make a configuration generation site for Google-android apps. Each user access the site from their own PC's to generate a configuration file, and then send the config file to android terminals over the USB connection.