how to call rest api using ip address