I created a new private app to fetch my products like https://apikey:password@hostname/admin/products.json
I got created new apikey and password from my store.
I am using Java client to connect to my private app. I created a new private app key. The app works perfectly fine from computer1. Now when I try to run the same program in computer 2, keep getting error "401 Unauthorized".
Below is the snippet of my code.
com.gargoylesoftware.htmlunit.Page page = webClient.getPage(" https://XXX:YYY@hostname/admin/products.json");
I can give my two computer IP details.