Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calculation of IPs and subnets based on Subnetmask in java

 
Hemanth Bhat
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can any one please let me know if there is any such API in java or any Open Source API that Java Supports
where in i can find out the number of Subnets and the list of IPs in a particular Subnet based on the Subnet Mask

i.e to be more elaborate
i need some API (Open Source) where in if i pass the subnet mask it should return me the number of subnets which are in the particular subnet mask and the list of IPs in each Subnet for that particular subnet mask

Appreciate a Quick response on this

Thanks
Hemanth
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache commons Net might have something, don't know of anything else sorry.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic