Fix to make library to work in local subnet.

Redmine issue: #540