dbmanager to dynamically retrieve local ipaddress