added dynamic host_ip in php api call