You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by Alexander Broekhuis <a....@gmail.com> on 2014/10/01 17:21:42 UTC
Re: [jira] [Created] (CELIX-160) ip adress in service url is fixed
If you have a chance, and are working on this, the APR code can be removed.
Perhaps it is even better to use it only via a property. The APR method
looks at the hostname to find the address, if the system's hostname is not
in the hosts file, it won't work.
2014-10-01 17:06 GMT+02:00 Bjoern Petri (JIRA) <ji...@apache.org>:
> Bjoern Petri created CELIX-160:
> ----------------------------------
>
> Summary: ip adress in service url is fixed
> Key: CELIX-160
> URL: https://issues.apache.org/jira/browse/CELIX-160
> Project: Celix
> Issue Type: Wish
> Reporter: Bjoern Petri
> Assignee: Bjoern Petri
> Priority: Trivial
>
>
> The RSA_HTTP determines the IP adress for the service url using
> apr_gethostname and apr_sockaddr_ip_get.
>
> If running celix within docker we want to announce the host ip adress here
> instead of the docker ip adress.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>
--
Met vriendelijke groet,
Alexander Broekhuis
Re: [jira] [Created] (CELIX-160) ip adress in service url is fixed
Posted by Alexander Broekhuis <a....@gmail.com>.
2014-10-02 7:30 GMT+02:00 Bjoern Petri <bj...@sundevil.de>:
>
> Hi Alexander,
>
> I just committed some code which allows us to specify the IP-Address
> directly or alternatively the name of the interface that should be used for
> retrieving the IP-Address. If none is given, than the committed code
> iterates over the found interfaces using the first IP-Address it can find.
>
Sounds good. We do need to write some documentation about those properties.
At the moment it is not obvious enough how to get things running. I always
need to look in the code to figure out the properties :D.
>
> Could you do me the favor and shortly check whether this (at least)
> compiles on MacOS as well?
>
Tried it, compiles and runs.
Ps: I've openend an issue for the website problems [1]. I hope to get some
feedback on that one soon..
[1]: https://issues.apache.org/jira/browse/INFRA-8408
--
Met vriendelijke groet,
Alexander Broekhuis
Re: [jira] [Created] (CELIX-160) ip adress in service url is fixed
Posted by Bjoern Petri <bj...@sundevil.de>.
Hi Alexander,
I just committed some code which allows us to specify the IP-Address
directly or alternatively the name of the interface that should be used
for retrieving the IP-Address. If none is given, than the committed code
iterates over the found interfaces using the first IP-Address it can
find.
Could you do me the favor and shortly check whether this (at least)
compiles on MacOS as well?
Regards,
Bjoern
On 2014-10-01 17:21, Alexander Broekhuis wrote:
> If you have a chance, and are working on this, the APR code can be
> removed.
> Perhaps it is even better to use it only via a property. The APR method
> looks at the hostname to find the address, if the system's hostname is
> not
> in the hosts file, it won't work.
>
> 2014-10-01 17:06 GMT+02:00 Bjoern Petri (JIRA) <ji...@apache.org>:
>
>> Bjoern Petri created CELIX-160:
>> ----------------------------------
>>
>> Summary: ip adress in service url is fixed
>> Key: CELIX-160
>> URL: https://issues.apache.org/jira/browse/CELIX-160
>> Project: Celix
>> Issue Type: Wish
>> Reporter: Bjoern Petri
>> Assignee: Bjoern Petri
>> Priority: Trivial
>>
>>
>> The RSA_HTTP determines the IP adress for the service url using
>> apr_gethostname and apr_sockaddr_ip_get.
>>
>> If running celix within docker we want to announce the host ip adress
>> here
>> instead of the docker ip adress.
>>
>>
>>
>> --
>> This message was sent by Atlassian JIRA
>> (v6.3.4#6332)
>>