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

Octavian Rasnita orasnita at gmail.com
Sun Mar 24 06:33:19 GMT 2013

From: "N.A." <n-a at u01.gate01.com>
To: <catalyst at lists.scsys.co.uk>

>      >> I wan to get the  IP address of the interface(network device)
>     which the
>      >> request come through.
>      >
>      > My bad.

Unless there is a more direct way of getting the IP address, you can create 
distinct virtual hosts for each IP address that can access your web app and 
set an HTTP environment variable that specifies that IP address. Then read 
that env var in your app.


More information about the Catalyst mailing list