• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Getting all IPs of a Remote multi homed machine

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I know I can find all the local ip addresses by getting a list of the nics.

However I need to do something trickier than that. The server I need to communicate to has two nics and two IPs. However when I get the ip address for that server it always returns the same one, even if that network is down. The other IP addres IS listed in the local naming table if I do a 'ipconfig /displaydns' but I can't get a handle to it from my java app.

any ideas people?

thanks
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
provided you can use rsh on unix: runtime.exec("rsh ifconfig -a")
((and some awk script to filter out the ip's))
reply
    Bookmark Topic Watch Topic
  • New Topic