Updated the recipe to work on the widget/localcloud
(Added a condition: if localcloud then use 127.0.0.1 as the private ip)