Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > show both ip adresses

Reply
Thread Tools

show both ip adresses

 
 
marionane@gmail.com
Guest
Posts: n/a
 
      02-20-2006
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

 
Reply With Quote
 
 
 
 
Robert Klemme
Guest
Posts: n/a
 
      02-20-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> 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/...orkInterfaces()

robert

 
Reply With Quote
 
 
 
 
marionane@gmail.com
Guest
Posts: n/a
 
      02-20-2006
thanks very much, solved it

 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      02-24-2006
On 20 Feb 2006 01:31:17 -0800, (E-Mail Removed) wrote, quoted or
indirectly quoted someone who said :

>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.

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where are the mail and adresses in Thunderbird Perk Firefox 2 02-28-2005 05:25 PM
How to FTP via VPN to sites with real adresses on different IP's ? Jason Robertson Wireless Networking 1 11-26-2004 06:26 AM
How to FTP via VPN to sites with real adresses on different IP's ? Jason Robertson ASP .Net 0 11-26-2004 01:53 AM
Public and private Adresses on a 3745 Router C. Kolbe Cisco 0 09-15-2004 08:37 PM
Howto find out any Ehternet Adresses in a Subnet? Sascha Teifke Java 2 06-28-2003 07:15 PM



Advertisments