cancel
Showing results for 
Search instead for 
Did you mean: 

IP and Server Port from Javascript API

hailpam
Champ in-the-making
Champ in-the-making
Hi all,

I'm facing with a problem. My Share App works with HTML files transformed with FTL template by XML native vesion. The body of these HTML files contains links to relevant documents that I get directly from Alfresco Repository, thanks to Guest Download Servlet.
The production environment is builded with 2 Alfresco ASs (clustered) and 1 reverse proxy in front of them in order to balance the requests. Therefore, I need of IP and Server Port or also only the machine'IP where, for example, the HTML file was generated (dynamically by one of workflow steps).

Are there Javascript APIs (one or more tips) that allows me to retrieve dynamically IP? Are there some combinations of existing Javascript APIs that allows me to go back to the IP Machine?

Thanks in advance. Best Regards,

- Paolo
3 REPLIES 3

hailpam
Champ in-the-making
Champ in-the-making
up

uskiki85
Champ in-the-making
Champ in-the-making
Hi,

I need also this informations in a js.

I have found that i can use urls.share.host or urls.share.port to have host and port for Alfresco share.

http://issues.alfresco.com/jira/browse/ALF-4927

But i have not found for IP server adress…

Any ideas ?

uskiki85
Champ in-the-making
Champ in-the-making
No ideas for the IP server adress in a js ?