Added changes to handle port and ipaddress for an instance