aspose file tools*
The moose likes Java in General and the fly likes API For Finding Subnet and Ip addresses in JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "API For Finding Subnet and Ip addresses in JAVA" Watch "API For Finding Subnet and Ip addresses in JAVA" New topic
Author

API For Finding Subnet and Ip addresses in JAVA

Hemanth Bhat
Greenhorn

Joined: Mar 20, 2007
Posts: 3
Hi All,

Can any one please let me know if there is such any 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 and the list of IPs in each Subnet for that particular subnet mask

Appreciate a Quick response on this

Thanks
Hemanth
Charbel Keyrouz
Ranch Hand

Joined: Jun 10, 2005
Posts: 46
check this site:

http://stackoverflow.com/questions/1221517/how-to-get-subnet-mask-using-java
Lance Colton
Ranch Hand

Joined: Nov 25, 2010
Posts: 64

Sorry to necro, however on the off chance it is still relevant, or someone else might find it useful, I've been working on this exact thing for the last few days.

project: https://launchpad.net/subnettingapi
Wiki: http://wiki.tak11.info/index.php?title=Java_Subnetting_API
Javadoc: http://www.tak11.info/javadocs/subnettingapi/index.html
Implementation: http://www.tak11.info/tools/Gravity/ClassfulSubnetting.jnlp

~tak
irc.esper.net - tak, irc.freenode.com - tak11, irc.efnet.org - tak11
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: API For Finding Subnet and Ip addresses in JAVA
 
Similar Threads
my understanding about subnet?
Enumerate computers on the local network
NetMask,IPAddress clarification
calculation of IPs and subnets based on Subnetmask in java
Are there any jar to check whether two ip address is in same network segment