Hi

We have talked about letting localhost be like 0.0.0.0. But the people
that are really into TCP and whatnot said that eg 0.0.0.0 is the right
notation to use.
Anyway a person like me would rather have it easy to use so whatever
you type localhost or 0.0.0.0 should just work. So when we got IP 6,
should you really need to change 0.0.0.0. to 0.0.0.0.0.0 ?



On Tue, Jul 28, 2009 at 8:31 PM, Claus Ibsen<[email protected]> wrote:
> Hi
>
> Yeah you should use 0.0.0.0 that will allows remote connections. I
> think Jetty logs a WARN when you use localhost.
>
>
> On Tue, Jul 28, 2009 at 8:28 PM, Stan Lewis<[email protected]> wrote:
>> Have you tried 0.0.0.0 instead of the hostname?
>>
>> On Tue, Jul 28, 2009 at 2:25 PM, Johnny2R<[email protected]> wrote:
>>>
>>> OK, I got my HL7 listener application (Camel, MINA, HAPI, Spring) working
>>> nicely and today tried to deploy it on the live server. I was able to
>>> connect to it from an app on the server itself but not from elsewhere on the
>>> network, and I was left thinking it must be a firewall issue. But I'm
>>> wondering whether it may simply be an error in the URI, which I have defined
>>> thus:
>>>
>>>    <camel:camelContext>
>>>        <camel:endpoint id="hl7listener"
>>> uri="mina:tcp://localhost:8888?sync=true&amp;codec=hl7codec"/>
>>>    </camel:camelContext>
>>>
>>> Since returning to my office, I tried deploying the test app on a different
>>> server from the test client and ran into what is apparently the same problem
>>> as at the production site. However, replacing 'localhost' in the URI with
>>> the real address of the server machine means I can now connect to it. Am I
>>> right in now thinking that with 'localhost' in the URI, you can ONLY connect
>>> to it from the same machine? The only examples I've seen use 'localhost' so
>>> I hadn't really given it much thought. If this is the case, is there a way
>>> of specifying the URI which doesn't require me to 'hard code' the real
>>> server hostname in the applicationContext.xml? It surprises me if the above
>>> is the case, because in Tomcat, say, you never have to specify the actual
>>> server address in the config.
>>> --
>>> View this message in context: 
>>> http://www.nabble.com/Probably-stupid-question-about-Camel-MINA-endpoint-tp24705254p24705254.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to