Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing the Subnet Mask  RSS feed

 
akhilesh maheshwari
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!