cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to access Webservices and Storefront running in our local machine from another network

Former Member
0 Likes
1,013

Hi,

I have Hybris Storefront running on my local machine. I need to access the Storefront and REST v2 Webservices running in my local machine, from another application or network

I have configured my machine to have public IP. But I could not access the storefront or Web services APIs from my machine itself.

My Web Service API looks like below **https://electronics.local:9002/authorizationserver/oauth/token?client_id=demo_client&client_secret=s...

Also my Storefront url is **https://electronics.local:9002/octcommonstorefront/electronics/en/**.

My local.properties has the following : website.electronics.https=https://electronics.local:9002/octcommonstorefront

What configuration changes I need to do, to access both from another network.

thanks, Vinod

Accepted Solutions (0)

Answers (1)

Answers (1)

arvind-kumar_avinash
Active Contributor
0 Likes

Hi Vinod,

What is the template you have used to create octcommonstorefront? You have to use ant modulegen and use the template commercewebservices. Also, please check the extensioninfo.xml of octcommonstorefront for webroot="/octcommonstorefront". If it is something else e.g. webroot="/myws", you will have to access your webservices using /myws e.g. https://localhost:9002/myws/v2/electronics/products/489702

Former Member
0 Likes

Hi Arvind, Thanks for your reply. I have created storefront using ant modulegen. Also used commercewebservices template. I could access storefront and web services locally. But to access from another application from another net work, I have made my machine configured to public IP. Now only I could not access from another network. Do we need to do anything for this in hybris local.properties or any other configuration. thanks, Vinod

arvind-kumar_avinash
Active Contributor
0 Likes

Have you checked with your network team whether the client machines are whitelisted to access your machine?

Former Member
0 Likes

Sure Arvind, I will check the same.

thanks,

Vinod.