bug in myIpAddress() Rated 3 out of 5 stars

Sometimes the function myIpAddress() returns the IP of the loopback interface (127.0.0.1). But this is not really useful. I want to get the IP of the interface eth1. How can I get to this IP address?

This review is for a previous version of the add-on (2.5.3).