WebAPI Server and SimpleSamples on different servers

Hello,
Is it possible to have the Samples on one server and WebApi Server installed on a different server? I installed a Tomcat on a different server and copied the Samples there but when opening the page I get only 1 Connected Media. When I open the page where Samples and WebApi Server are on the same server I get 12 Connected Media.
I found the variable strConavServerUrl in constants jsp and set it to the host where WebAPI Server is but still no success. Is there any other configuration that I have to make on the Samples so it contacts the WebAPI Server on another server?

Thank you!
Mihai

Never change the constant.jsp and all works as expected. I have just change the global.asax, but I have tried the Samples just for test. The webpages are not written properly.