added support for master's ip address