This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Accessing the Subnet Mask Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Accessing the Subnet Mask" Watch "Accessing the Subnet Mask" New topic
Author

Accessing the Subnet Mask

akhilesh maheshwari
Greenhorn

Joined: Jul 20, 2001
Posts: 6
Hi! All,
Is there a way to access the Subnet Mask of a computer directly from the Java code using System properties or something like that.
Thanks and appretiate any help..
surya kumar mp
Greenhorn

Joined: Sep 30, 2001
Posts: 13
HI
As i know ,Java currently has no facility for accessing or determining a subnet mask. A subnet mask is used to denote which bits in an IP address are the "network" part and which bits are the "machine" part.
I think you need to broad cast the message accorss defferent networks(or one Network). Possible solution might be get the All IP's in that network(s) and brodcast the message to all(Might be the soluation).
Surya.MP
Originally posted by akhilesh maheshwari:
Hi! All,
Is there a way to access the Subnet Mask of a computer directly from the Java code using System properties or something like that.
Thanks and appretiate any help..

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing the Subnet Mask
 
Similar Threads
JBOSS Server ERROR [UDP] exception
API For Finding Subnet and Ip addresses in JAVA
how can I get the details of connected system under LAN
RedHat Ethernet adapter problem
calculation of IPs and subnets based on Subnetmask in java