Hi,
Problem solved. I changed my code like this. Then it's working fine.

ContextBuilder builder =
                ContextBuilder.newBuilder(provider).endpoint("
http://10.100.4.127:8096";).credentials(apiKey, secretKey);

        ComputeServiceContext context =
builder.buildView(ComputeServiceContext.class);

On Sat, Sep 27, 2014 at 10:13 PM, Asanka sanjaya Herath <[email protected]>
wrote:

> I'm using this code to create a compute service in jclouds. My Iaas
> provider is cloudstak.
>
>    ComputeServiceContext context =
> ContextBuilder.newBuilder(provider).credentials(apiKey, secretKey)
>                 .buildView(ComputeServiceContext.class);
>
> The context object has been created for localhost (Default). But I need to
> point to another IP instead of localhost. Because Cloudstak is *not*
> running @ localhost. How can I do this?
>
> --
> Thanks,
> Regards,
> ASH
>



-- 
Thanks,
Regards,
ASH

Reply via email to