Added option to configure server ip dynamically