i`ve got this computer with 2 network cards and now i want to write a
programm which shows both ip-adresses, is, and if so, how is that
possible?
best regards
Robert Klemme - 20 Feb 2006 09:54 GMT
> i`ve got this computer with 2 network cards and now i want to write a
> programm which shows both ip-adresses, is, and if so, how is that
> possible?
> best regards
On *nixes: ifconfig -a
For a Java implementation you can start here:
http://java.sun.com/j2se/1.4.2/docs/api/java/net/NetworkInterface.html#getNetwor
kInterfaces()
robert
marionane@gmail.com - 20 Feb 2006 14:05 GMT
thanks very much, solved it :)
Roedy Green - 24 Feb 2006 20:53 GMT
>i`ve got this computer with 2 network cards and now i want to write a
>programm which shows both ip-adresses, is, and if so, how is that
>possible?
>best regards
see http://mindprod.com/jgloss/ip.html
source code included. Note that you can get an array of ips back, not
jjust the main one.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.