Re: multiple services in one vm?
Niclas Hedhman <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
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. Cheers Niclas -------------------------------------------------------------------------- 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]