Re: multiple services in one vm?

Dan Creswell <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Mark Brouwer wrote:
> Niclas Hedhman wrote:
>> On Friday 19 January 2007 19:27, Mark Brouwer wrote:
>>> Dan Creswell wrote:
>>>> Sure you know this but it's worth saying:
>>>>
>>>> Just be wary because eth0 might not always be the right/valid
>>>> interface.
>>> FWIW from the FAQ for Seven:
>>>
>>> "You can find out the name of your NIC with ifconfig -a or netstat -i.
>>> For Windows it is not that easy to find the adapter name to use for
>>> configuration purposes, but it seems that if you execute ipconfig /all
>>> the first ethernet adapter listed is named eth0, the second eth1, etc."
>>>
>>> If somebody knows a better way, please let me know.
>>
>> Never tried it, but is there anything wrong with;
>>
>>  java.net.NetworkInterface.getNetworkInterfaces();
>>
>> And then from that iterate the InetAddress instances and see if they are
>> multicast capable.
>
> I guess you mean the above as an auto-configuration option instead of
> the current behavior where all interface are expected to be multicast
> capable? I see no problem with that but it might hide the fact
> interfaces are ignored due to misconfiguration. Always hard to tell what
> the best way is to deal with these issues ...

Indeed - and there's no clear and sane policy when you have multiple
interfaces capable of multicast.  Choose one or all?  It's going to be
linked at least potentially to the address in the proxy you want to give
to the client.

> --
> Mark
>
> --------------------------------------------------------------------------
> Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
> Community Web Site:  http://jini.org
> jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
> Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
>

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.