Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting all IPs of a Remote multi homed machine  RSS feed

 
Lloyd Shove
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • 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
 
sander hautvast
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • 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))
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!