Hi Rasika,
Try setting -Dserver.host=2.2.2.2 in your "wso2server.sh"

Cheers,
Ruwanm

On Wed, Aug 5, 2015 at 7:13 PM, Rasika Perera <[email protected]> wrote:

> Hi,
>
> When we have setup a public IP (eg. 2.2.2.2) and a private IP (eg.
> 1.1.1.1) for a server setup given that [1] changes done on carbon.xml.
>
> How can I retrieve the public IP from the following jaggery code;
>
>> ​var carbon = require('carbon');
>> print (carbon.server.address('http'));
>
>
> This still prints "http://1.1.1.1:9763";. Is there any additional
> configurations needed to be done on carbon.xml?
>
> [1] carbon.xml
>
> <HostName>2.2.2.2</HostName>
>
> <MgtHostName>2.2.2.2</MgtHostName>​
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> M: +94 71 680 9060 E: [email protected]
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com <http://wso2.com/> *
*lean.enterprise.middleware.*

email: [email protected]
phone:(+94) 777739736
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to