Thank you all,
I can't find `more direct way of getting the IP address' nor way of
getting the network interface of the HTTP-request. The following is
summary of what I learned from this ML and source code.
- 'SERVER_ADDR' environment variable is not portable.
PSGI Specification says
From: "N.A."
To:
>> 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 y