Fix for Issue #12: Use real IP adress if running behind proxy or loadbal...

Proposed fix for issue #12.

This solves the problem for me.